SLVAFT2A
May 2024 – July 2024
TPS2HCS10-Q1
1
Abstract
Trademarks
1
Software Ecosystem
2
Platform Drivers
2.1
Driver Concept
2.2
Supported Platforms
2.3
Porting to Other Platforms
2.4
API Guide
2.4.1
tHCSResponseCode Union Reference
2.4.2
float_t HCS_convertCurrent (uint16_t rawValue, uint16_t ksnsVal, uint16_t snsRes)
2.4.3
float_t HCS_convertTemperature (uint16_t rawValue)
2.4.4
float_t HCS_convertVoltage (uint16_t rawValue)
2.4.5
tHCSResponseCode HCS_getChannelFaultStatus (uint8_t chanNum, uint16_t * fltStatus)
2.4.6
tHCSResponseCode HCS_getDeviceFaultSatus (uint16_t * fltStatus)
2.4.7
tHCSResponseCode HCS_gotoLPM (lpm_exit_curr_ch1_t ch1ExitCurrent, lpm_exit_curr_ch2_t ch2ExitCurrent)
2.4.8
tHCSResponseCode HCS_gotoSleep (void )
2.4.9
tHCSResponseCode HCS_initializeDevice (TPS2HCS10Q1_CONFIG * config)
2.4.10
tHCSResponseCode HCS_readRegister (uint8_t addr, uint16_t * readValue)
2.4.11
tHCSResponseCode HCS_setSwitchState (uint8_t swState)
2.4.12
tHCSResponseCode HCS_updateConfig (TPS2HCS10Q1_CONFIG * config)
2.4.13
tHCSResponseCode HCS_wakeupDevice (void )
2.4.14
tHCSResponseCode HCS_writeRegister (uint8_t addr, uint16_t payload)
3
Configuration or Evaluation Tool
4
Code Examples
4.1
Empty Example
4.2
I2T Trip Example
4.3
Low-Power Mode Example
4.4
Current Sense Example
5
Summary
6
References
7
Revision History
2.4
API Guide
References
tHCSResponseCode Union (
Section 2.4.1
)
HCS_convertCurrent (
Section 2.4.2
)
HCS_convertTemperature (
Section 2.4.3
)
HCS_convertVoltage (
Section 2.4.4
)
HCS_getChannelFaultStatus (
Section 2.4.5
)
HCS_getDeviceFaultSatus (
Section 2.4.6
)
HCS_gotoLPM (
Section 2.4.7
)
HCS_gotoSleep (
Section 2.4.8
)
HCS_initializeDevice (
Section 2.4.9
)
HCS_readRegister (
Section 2.4.10
)
HCS_setSwitchState (
Section 2.4.11
)
HCS_updateConfig (
Section 2.4.12
)
HCS_wakeupDevice (
Section 2.4.13
)
HCS_writeRegister (
Section 2.4.14
)