mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Update mcp4461.h
This commit is contained in:
parent
0b54552152
commit
0363c08c7a
@ -100,23 +100,7 @@ class Mcp4461Component : public Component, public i2c::I2CDevice {
|
|||||||
/// @param[wiper] wiper for which terminal shall be initialized disabled
|
/// @param[wiper] wiper for which terminal shall be initialized disabled
|
||||||
/// @param[terminal] terminal to disable, one of { 'a', 'b', 'w', 'h' }
|
/// @param[terminal] terminal to disable, one of { 'a', 'b', 'w', 'h' }
|
||||||
void initialize_terminal_disabled(Mcp4461WiperIdx wiper, char terminal);
|
void initialize_terminal_disabled(Mcp4461WiperIdx wiper, char terminal);
|
||||||
/// @brief available/required status codes
|
|
||||||
|
|
||||||
enum ErrorCode {
|
|
||||||
MCP4461_STATUS_OK = 0, // CMD completed successfully
|
|
||||||
MCP4461_FAILED, // component failed
|
|
||||||
MCP4461_STATUS_I2C_ERROR, // Unable to communicate with device
|
|
||||||
MCP4461_STATUS_REGISTER_INVALID, // Status register value was invalid
|
|
||||||
MCP4461_STATUS_REGISTER_ERROR, // Error fetching status register
|
|
||||||
MCP4461_PROHIBITED_FOR_NONVOLATILE, //
|
|
||||||
MCP4461_VALUE_INVALID, // Invalid value given for wiper / eeprom
|
|
||||||
MCP4461_WRITE_PROTECTED, // The value was read, but the CRC over the payload (valid and data) does not match
|
|
||||||
MCP4461_WIPER_ENABLED, // The wiper is enabled, discard additional enabling actions
|
|
||||||
MCP4461_WIPER_DISABLED, // The wiper is disabled - all actions for this wiper will be aborted/discarded
|
|
||||||
MCP4461_WIPER_LOCKED, // The wiper is locked using WiperLock-technology - all actions for this wiper will be
|
|
||||||
// aborted/discarded
|
|
||||||
} error_code{MCP4461_STATUS_OK};
|
|
||||||
|
|
||||||
/// @brief available/required status codes
|
/// @brief available/required status codes
|
||||||
enum ErrorCode {
|
enum ErrorCode {
|
||||||
MCP4461_STATUS_OK = 0, // CMD completed successfully
|
MCP4461_STATUS_OK = 0, // CMD completed successfully
|
||||||
|
Loading…
x
Reference in New Issue
Block a user