| 数据搜索系统,热门电子元器件搜索 |
|
AN3108 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 44 page ![]() AN3108 STLM75 library firmware Doc ID 16793 Rev 1 21/44 Example: TS_I2C_SettingsType TempSensorI2C_Settings; /* Enable I2C2 clock */ RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C2, ENABLE); /* I2C Peripheral settings initialization */ TempSensorI2C_Settings.TS_I2C_Ptr = I2C2; TempSensorI2C_Settings.TS_I2C_Clock = 0x90; TempSensorI2C_Settings.TS_I2C_Address = 400000; pObjTempSensor->SetI2C_Settings(pObjTempSensor, &TempSensorI2C_Settings); TempSensor:: SetSignals API function Table 9 describes the SetSignals function of the TempSensor structure. This function is called by the TempSensor:Init function during the initialization phase, therefore it’s not necessary to directly call it. The final application can specifically call this function in order to change the microcontroller signal (port, pin, mode) settings after initialization. Table 9. SetSignals Name Description Function name SetSignals Function prototype TS_ErrStatus SetSignals (TempSensorType* pThis, TS_SignalsType* pSignals) Behavior description Set the STLM75 signals (port and pin) using the right values from the passed parameter Input parameter {x} pThis - Object pointer; pSignals - A Signal collection structure pointer; Output parameter {x} None Return value TS_OK if successful, TS_ERROR otherwise Required preconditions NewTempSensorObj function must have been called before. Called functions HAL function: void TS_ConfigSignal(TS_SignalType* pSignal) |
|
链接网址 |
| 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 |