| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
UM1836 bảng dữ liệu(PDF) 3 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1836 bảng dữ liệu(HTML) 3 Page - STMicroelectronics |
|
3 / 16 page ![]() UM1836 Software overview DocID027146 Rev 1 3/16 1 Software overview The STC3115 device is a battery monitoring IC which uses simple battery parameters and system information to provide information on the battery state, such as the remaining battery capacity, battery voltage, and battery current. The STC3115 software driver package manages the STC3115 including device configuration and battery information read back. Management and configuration of the device is in accordance with battery and application events. The STC3115 software driver package provides several files; the content of each is described in the sections below. Their organization and connections are shown in Figure 1. 1.1 stc3115_Driver.c This file contains the functions to initialize and report the battery state based on STC3115 algorithms. The functions include the following features: • Dedicated I 2C functions which are linked to the interface driver functions in the stc3115_I2C.c file (see Section 1.4). The hardware system has to support multiple I 2C access commands to guarantee data integrity during the 16-bit register read/write operations. • The STC3115 driver's own functions which are contained in the first part of the stc3115_Driver.c file. These functions should not be accessed by external functions. • Gas gauge functions which are the main interface functions and which have to be used by the application to initialize, monitor, and stop the STC3115 device. • Power saving functions which can be used to manage the STC3115 operating mode (mixed mode or voltage mode). Power saving functions have to be called by an external program to change the STC3115 operating mode after STC3115 initialization. • Alarm management functions which have to be called to set, stop, get, clear, and change the alarm thresholds after STC3115 initialization. 1.2 stc3115_Driver.h This file defines the STC3115 constant numbers and the driver API structures and functions as follows: • The STC3115_ConfigData_TypeDef structure is filled by the driver with battery configuration data from the stc3115_Battery.h (see Section 1.3) information. • The STC3115_BatteryData_TypeDef structure is filled by the driver with the battery state. • The RAMData structure is the RAM memory map description which is used internally by the driver. This structure must not be modified by external accesses. 1.3 stc3115_Battery.h This file is used to describe the battery and application configuration. It has to be filed with battery and application data (see Section 2). 1.4 stc3115_I2C.c This file is used to define the I 2C exchange functions between the STC3115 driver and the application I 2C driver. This file has to be updated with the functions of the application I2C driver. The hardware system has to support multiple I 2C access commands to guarantee data integrity during the 16-bit register read/write operations. |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |