Electronic Components Datasheet Search |
|
AN3108 Datasheet(PDF) 8 Page - STMicroelectronics |
|
AN3108 Datasheet(HTML) 8 Page - STMicroelectronics |
8 / 44 page STLM75 library AN3108 8/44 Doc ID 16793 Rev 1 3 STLM75 library 3.1 Introduction The STLM75 firmware library is fully developed in 'Strict ANSI-C' following an OOP approach. This means the final application using this library uses an instance of a temperature sensor object (TempSensor), and uses it according to its public methods and properties. The TempSensor is a structure containing public properties (data fields) and methods (functions pointers). The OOP encapsulation feature is assured. The final application can create more than one TempSensor instance, and each instance can be matched with a different STLM75 temperature sensor assembled on the board. Therefore, the same library can be used to manage more temperature sensors simultaneously without communication and data conflict problems. The library may be included in the final application as a library file (STLM75.a) and used as a black box through its exported public API, or can be included in the final application as source files (.c and .h), if the user wants to debug the library itself, or if it’s necessary to change the HAL functions in order to port the library on an alternative microcontroller to the STM32F10xxx. 3.2 Library package The library was developed using the IAR EWARM 5.20 and the related workspace/project files are included in the delivered package. As all the firmware is written in 'Strict ANSI-C', the library porting on another toolset doesn't require any change in the library. The library folder contains all the subdirectories and files that make up the core of the library: ● The included sub-folder contains the firmware library header files. They don't need to be modified by the user: – TempSensorObj.h: API layer file; this contains the Temperature Sensor Object structure description in terms of methods and properties; The API functions are declared in this file. – TempSensorTypes.h: API layer file; this contains all the defined types used by TempSensorObj.xxx files and related to the STLM75 temperature sensor. – TempSensorHal.h: HAL layer file; this contains all the Temperature Sensor functions declaration whose implementation depends on the MCU used (STM32 for this delivery). The final user should change these files in order to reuse this STLM75 library with other microcontrollers – TempSensorHalTypes.h HAL layer file; this contains all the Temperature Sensor types mapped on the used MCU library types (STM32 for this delivery). The final |
Similar Part No. - AN3108 |
|
Similar Description - AN3108 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | 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 |