| 数据搜索系统,热门电子元器件搜索 |
|
AN3108 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 44 page ![]() AN3108 STLM75 library firmware Doc ID 16793 Rev 1 23/44 TS_SignalsType* pTempSensorSignals; /* Get the Signals */ pTempSensorSignals = pObjTempSensor->GetSignals(pObjTempSensor); TempSensor:: SetRegister API function Table 11 describes the SetRegister function of the TempSensor structure. This function can be considered as an advanced function for the final user who knows STLM75 internal registers. This function call can be avoided by calling one of the following specific functions: SetConfiguration, SetTempHysteresis, SetTempOverLimit; Note that calling the SetRegister advanced function instead of a specific one, internal TempSensor object data (m_Configuration, m_TempHysteresis, m_TempOverLimit) is not assigned. Required preconditions NewTempSensorObj function must have been called before. Called functions None Table 11. SetRegister Name Description Function name SetRegister Function prototype TS_ErrStatus SetRegister (TempSensorType* pThis, TS_RegSelectionType eRegSelection, TS_u16 uRegValue) Behavior description Set the STLM75 register identified by eRegSelection type with the value passed as parameter Input parameter {x} pThis - Object pointer; eRegSelection - The type associated to the register to be set; uRegValue - The value to be assigned to the register. This is a 16-bit value, so for the 8-bit register, only the LSB must be considered Output parameter {x} None Return value TS_OK if successful, TS_ERROR otherwise Required preconditions NewTempSensorObj, TempSensor:: Init functions must have been called before. Called functions HAL function: TS_ErrStatus TS_SetPointerRegister(…); TS_ErrStatus TS_FillRegisterFromData(…); Table 10. GetSignals (continued) Name Description |
|
链接网址 |
| 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 |