| 数据搜索系统,热门电子元器件搜索 |
|
AN3108 数据表(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 数据表(HTML) 22 Page - STMicroelectronics |
|
22 / 44 page ![]() STLM75 library firmware AN3108 22/44 Doc ID 16793 Rev 1 Example: TS_SignalsType TempSensorSignals; /* Enable GPIOB clock */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); /* GPIO signals configuration */ /* Configure PB.10 as alternate function Open-Drain */ TempSensorSignals.TS_SCL.Port = GPIOB; TempSensorSignals.TS_SCL.Pin = GPIO_Pin_10; TempSensorSignals.TS_SCL.Mode = GPIO_Mode_AF_OD; /* Configure PB.11 as alternate function Open-Drain */ TempSensorSignals.TS_SDA.Port = GPIOB; TempSensorSignals.TS_SDA.Pin = GPIO_Pin_11; TempSensorSignals.TS_SDA.Mode = GPIO_Mode_AF_OD; /* Configure PB.12 as alternate function Open-Drain */ TempSensorSignals.TS_OS_INT.Port = GPIOB; TempSensorSignals.TS_OS_INT.Pin = GPIO_Pin_12; TempSensorSignals.TS_OS_INT.Mode = GPIO_Mode_AF_PP; pObjTempSensor->SetSignals(pObjTempSensor, &TempSensorSignals); TempSensor:: GetSignals API function Table 10 describes the GetSignals function of the TempSensor structure. Table 10. GetSignals Name Description Function name GetSignals Function prototype TS_SignalsType* GetSignals (TempSensorType* pThis) Behavior description Return the Signal collection structure pointer Input parameter {x} pThis - Object pointer Output parameter {x} None Return value The signals structure pointer |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |