STSW-STLKT01: SENSORTILE_GG_Exported_Functions

STSW-STLKT01

STSW-STLKT01
SENSORTILE_GG_Exported_Functions

Functions

DrvStatusTypeDef BSP_GG_Init (void **handle)
 Set GG Initialization. More...
 
DrvStatusTypeDef BSP_GG_DeInit (void **handle)
 Deinitialize a gas gauge sensor. More...
 
DrvStatusTypeDef BSP_GG_IsInitialized (void *handle, uint8_t *status)
 Check if the gas gauge sensor is initialized. More...
 
DrvStatusTypeDef BSP_GG_IsCombo (void *handle, uint8_t *status)
 Check if the gas gauge sensor is combo. More...
 
DrvStatusTypeDef BSP_GG_Get_WhoAmI (void *handle, uint8_t *who_am_i)
 Get the WHO_AM_I ID of the gas gauge sensor. More...
 
DrvStatusTypeDef BSP_GG_Task (void *handle, uint8_t *vm_mode)
 Task to read periodically data of STC3115. More...
 
DrvStatusTypeDef BSP_GG_Reset (void *handle)
 Reboot memory content of GG. More...
 
DrvStatusTypeDef BSP_GG_Stop (void *handle)
 Stop the gas gauge system. More...
 
DrvStatusTypeDef BSP_GG_GetOCV (void *handle, uint32_t *ocv)
 Get the OCV. More...
 
DrvStatusTypeDef BSP_GG_GetSOC (void *handle, uint32_t *soc)
 Get the SOC. More...
 
DrvStatusTypeDef BSP_GG_GetChargeValue (void *handle, uint32_t *chrgValue)
 Get the charge value. More...
 
DrvStatusTypeDef BSP_GG_GetPresence (void *handle, uint32_t *presence)
 Get the presence. More...
 
DrvStatusTypeDef BSP_GG_GetCurrent (void *handle, int32_t *current)
 Get the current. More...
 
DrvStatusTypeDef BSP_GG_GetVoltage (void *handle, uint32_t *voltage)
 Get the voltage. More...
 
DrvStatusTypeDef BSP_GG_GetTemperature (void *handle, int32_t *temp)
 Get the temperature. More...
 
DrvStatusTypeDef BSP_GG_GetRemTime (void *handle, int32_t *remTime)
 Get the estimated remaining time. More...
 

Detailed Description

Function Documentation

◆ BSP_GG_DeInit()

DrvStatusTypeDef BSP_GG_DeInit ( void **  handle)

Deinitialize a gas gauge sensor.

Parameters
handlepointer to the device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 162 of file SensorTile_gg.c.

◆ BSP_GG_Get_WhoAmI()

DrvStatusTypeDef BSP_GG_Get_WhoAmI ( void *  handle,
uint8_t *  who_am_i 
)

Get the WHO_AM_I ID of the gas gauge sensor.

Parameters
handlethe device handle
who_am_ipointer to the value of WHO_AM_I register
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 258 of file SensorTile_gg.c.

◆ BSP_GG_GetChargeValue()

DrvStatusTypeDef BSP_GG_GetChargeValue ( void *  handle,
uint32_t *  chrgValue 
)

Get the charge value.

Parameters
handlethe device handle
chrgValuethe pointer to the remaining battery charge value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 434 of file SensorTile_gg.c.

◆ BSP_GG_GetCurrent()

DrvStatusTypeDef BSP_GG_GetCurrent ( void *  handle,
int32_t *  current 
)

Get the current.

Parameters
handlethe device handle
currentthe pointer to the absorbed current value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 490 of file SensorTile_gg.c.

◆ BSP_GG_GetOCV()

DrvStatusTypeDef BSP_GG_GetOCV ( void *  handle,
uint32_t *  ocv 
)

Get the OCV.

Parameters
handlethe device handle
ocvthe pointer to the open circuit voltage value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 378 of file SensorTile_gg.c.

◆ BSP_GG_GetPresence()

DrvStatusTypeDef BSP_GG_GetPresence ( void *  handle,
uint32_t *  presence 
)

Get the presence.

Parameters
handlethe device handle
presencethe pointer to the value refers to battery presence
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 462 of file SensorTile_gg.c.

◆ BSP_GG_GetRemTime()

DrvStatusTypeDef BSP_GG_GetRemTime ( void *  handle,
int32_t *  remTime 
)

Get the estimated remaining time.

Parameters
handlethe device handle
remTimethe pointer to the remaining time value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 573 of file SensorTile_gg.c.

◆ BSP_GG_GetSOC()

DrvStatusTypeDef BSP_GG_GetSOC ( void *  handle,
uint32_t *  soc 
)

Get the SOC.

Parameters
handlethe device handle
socthe pointer to the state of charge value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 406 of file SensorTile_gg.c.

◆ BSP_GG_GetTemperature()

DrvStatusTypeDef BSP_GG_GetTemperature ( void *  handle,
int32_t *  temp 
)

Get the temperature.

Parameters
handlethe device handle
tempthe pointer to the battery temperature value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 546 of file SensorTile_gg.c.

◆ BSP_GG_GetVoltage()

DrvStatusTypeDef BSP_GG_GetVoltage ( void *  handle,
uint32_t *  voltage 
)

Get the voltage.

Parameters
handlethe device handle
voltagethe pointer to the battery voltage value
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 518 of file SensorTile_gg.c.

◆ BSP_GG_Init()

DrvStatusTypeDef BSP_GG_Init ( void **  handle)

Set GG Initialization.

Parameters
handlepointer to the device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 102 of file SensorTile_gg.c.

◆ BSP_GG_IsCombo()

DrvStatusTypeDef BSP_GG_IsCombo ( void *  handle,
uint8_t *  status 
)

Check if the gas gauge sensor is combo.

Parameters
handlethe device handle
statusthe pointer to the combo status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 231 of file SensorTile_gg.c.

◆ BSP_GG_IsInitialized()

DrvStatusTypeDef BSP_GG_IsInitialized ( void *  handle,
uint8_t *  status 
)

Check if the gas gauge sensor is initialized.

Parameters
handlethe device handle
statusthe pointer to the initialization status
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 203 of file SensorTile_gg.c.

◆ BSP_GG_Reset()

DrvStatusTypeDef BSP_GG_Reset ( void *  handle)

Reboot memory content of GG.

Parameters
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 323 of file SensorTile_gg.c.

◆ BSP_GG_Stop()

DrvStatusTypeDef BSP_GG_Stop ( void *  handle)

Stop the gas gauge system.

Parameters
handlethe device handle
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 350 of file SensorTile_gg.c.

◆ BSP_GG_Task()

DrvStatusTypeDef BSP_GG_Task ( void *  handle,
uint8_t *  vm_mode 
)

Task to read periodically data of STC3115.

Parameters
handlethe device handle
vm_modethe pointer to the operating mode
Return values
COMPONENT_OKin case of success
COMPONENT_ERRORin case of failure

Definition at line 295 of file SensorTile_gg.c.

Generated by   doxygen 1.8.13