High-side Switch Shield
-
class HssShield
High side switch shield abstract API.
Subclassed by hss::Bth500xxShield, hss::Bts5001xShield, hss::Bts500xxShield, hss::Bts700xShield, hss::Btt60xxShield
Public Functions
-
inline virtual ~HssShield()
Default destructor.
-
virtual Error_t init() = 0
Initializes the shield including it hardware instances.
- Returns:
High-side switch error code
-
virtual Error_t deinit() = 0
Deinitializes the shield including it hardware instances.
- Returns:
High-side switch error code
-
virtual Error_t switchHxOn(uint8_t x) = 0
Turns on the specified shield switch output number.
- Parameters:
x – [in] Switch output number
- Returns:
High-side switch error code
-
virtual Error_t switchHxOff(uint8_t x) = 0
Turns off the specified shield switch output number.
- Parameters:
x – [in] Switch output number
- Returns:
High-side switch error code
-
virtual DiagStatus_t readDiagx(uint8_t x) = 0
Reads the diagnose from the specified shield switch output number.
- Parameters:
x – [in] Switch output number
- Returns:
High-side switch error code
-
virtual float readIsx(uint8_t x) = 0
Read the diagnose current from the specified shield switch output number.
- Parameters:
x – [in] Switch output number
- Returns:
Current value in mA
-
inline virtual ~HssShield()