|
BS120x Ethernet Library 1.0.0
BS120x Ethernet Library
|
Contains BS120x-related code. More...
Classes | |
| class | EthernetClient |
| Ethernet client for communicating with the Bloomy Controls Battery Simulator (BS120x). More... | |
| struct | OpModeConfig |
| Operating mode configuration values. More... | |
| struct | UnitConfig |
| Information about the unit configuration. More... | |
| struct | UnitStatus |
| Information about unit health and status. More... | |
Typedefs | |
| template<class T > | |
| using | Result = tl::expected< T, ErrorCode > |
| Result type used to return values or error codes for driver functions. | |
Enumerations | |
| enum class | ErrorCode : int { kSuccess = 0 , kChannelIndexOutOfRange = -100 , kInvalidIPAddress = -101 , kAlreadyConnected = -102 , kTcpAlreadyConnected = -103 , kUdpAlreadyConnected = -104 , kUdpSocketOpenFailed = -105 , kTcpSocketConfigFailed = -106 , kUdpSocketConfigFailed = -107 , kUdpSocketBindFailed = -108 , kTcpConnectFailed = -109 , kReadFailed = -110 , kSendFailed = -111 , kNotConnected = -112 , kFrameIdMismatch = -113 , kInvalidFrameSize = -114 , kAiIndexOutOfRange = -115 , kDioIndexOutOfRange = -116 , kBufferTooSmall = -117 , kVoltageOutOfRange = -118 , kCurrentOutOfRange = -119 , kReadbackTimedOut = -120 , kInvalidBoxId = -121 , kNoConfigData = -122 , kInvalidConfigOption = -123 , kWrongConfigOptionType = -124 , kInvalidArgument = -125 , kAllocationFailed = -126 , kUnexpectedException = -127 } |
| Error codes returned by driver functions. More... | |
Functions | |
| const char * | ErrorMessage (ErrorCode ec) noexcept |
| Get an error message string for a given error code. | |
Contains BS120x-related code.
Result type used to return values or error codes for driver functions.
'tl::expected' models C++23's 'std::expected' and adds some other useful functions as well.
| T | Type of the 'expected' response. |
|
strong |
Error codes returned by driver functions.
|
noexcept |
Get an error message string for a given error code.
| [in] | ec | Error code. |