| Electronic Components Datasheet Search |
|
AN3108 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 44 page ![]() STLM75 library firmware AN3108 24/44 Doc ID 16793 Rev 1 Example: ... pObjTempSensor->SetRegister(pObjTempSensor, TS_SEL_CONF_REG, 0); TempSensor:: GetRegister API function Table 12 describes the GetRegister 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: GetConfiguration, GetTemperature, GetTempHysteresis, GetTempOverLimit; Example: TS_u16 uTemperatureRegisterValue; uTemperatureRegisterValue = pObjTempSensor- >GetRegister(pObjTempSensor, TS_SEL_TEMP_REG); Table 12. GetRegister Name Description Function name GetRegister Function prototype TS_u16 GetRegister (TempSensorType* pThis, TS_RegSelectionType eRegSelection) Behavior description Return a 16-bit register value. The right register is identified by eRegSelection type passed as parameter. For the 8-bit register, only the LSB must be considered in the return value. Input parameter {x} pThis - Object pointer; eRegSelection - The type associated to the register to be set Output parameter {x} None Return value Register value if successful, TS_NULL_REG_VALUE otherwise Required preconditions NewTempSensorObj, TempSensor:: Init functions must have been called before. Called functions HAL function: TS_ErrStatus TS_SetPointerRegister(…); TS_ErrStatus TS_FillDataFromRegister (…); |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |