| Electronic Components Datasheet Search |
|
AN3108 Datasheet(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 Datasheet(HTML) 12 Page - STMicroelectronics |
|
12 / 44 page ![]() STLM75 library firmware AN3108 12/44 Doc ID 16793 Rev 1 NewTempSensorObj API global function Table 4 describes the NewTempSensorObj function: Example: TempSensorType* pObjTempSensor; pObjTempSensor = NewTempSensorObj (); /* Hardware Configuration: Signals: SCL, SDA, OS_INT pins */ TS_SignalsType TempSensorSignals; ... /* Hardware Configuration: I2C pheripheral */ TS_I2C_SettingsType TempSensorI2C_Settings; ... /* Initialize the temperature sensor according to previous Signals and I2C_Settings */ pObjTempSensor->Init(pObjTempSensor, &TempSensorSignals, &TempSensorI2C_Settings); Once a TempSensor object instance is created using the NewTempSensorObj function, the TempSensor object itself provides all its features through its internal function pointers. Figure 2 shows the TempSensor object properties and methods in detail, which the final application can use to interact with the temperature sensor. Table 4. NewTempSensor API function Name Description Function name NewTempSensorObj Function prototype TempSensorType* NewTempSensorObj (void) Behavior description Create and initialize a new TempSensor object (a C structure) Input parameter {x} None Output parameter {x} None Return value The created object pointer or null if the object cannot be created Required preconditions None Called functions No API/HAL layers functions; |
|
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 |