| Electronic Components Datasheet Search |
|
AN3108 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 44 page ![]() AN3108 STLM75 library firmware Doc ID 16793 Rev 1 11/44 4 STLM75 library firmware This section describes the API and HAL layer implementation. Each library firmware function is described in detail. API and HAL layer functions are fully described. An example of how to use API functions is included. No example for HAL functions is provided because the final application should manage the STLM75 temperature sensor through the API layer functions only, without any direct access to the HAL functions. The functions are described in the following format: 4.1 API layer firmware overview The application programming interface layer allows the final application to easily use the STLM75 temperature sensor. An OOP approach is used, making it possible for the application to create and use one or more instances of a TempSensor object. The TempSensor structure is seen by the application as an object with encapsulate properties and methods. All read/write operations on the temperature sensors are executed through this object. It is an advanced structure containing: ● Properties as data fields ● Methods as functions pointers In this way, each API function belongs to the related TempSensor object instance and more instances, and then more temperature sensors, can be managed without any conflicts. In addition, the library exports two public API global functions in order to create/destroy a TempSensor structure instance: ● NewTempSensorObj function ● DelTempSensorObj function Table 3. Function description format Name Description Function name The name of the peripheral function Function prototype Prototype declaration Behavior description Brief explanation of how the function is executed Input parameter {x} Description of the input parameters Output parameter {x} Description of the output parameters Return value Value returned by the function Required preconditions Requirements before calling the function Called functions Other library functions called |
|
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 |