|
FIU Serial Library 1.0.0
FIU Serial Library
|
Contains FIU-related code. More...
Classes | |
| struct | FirmwareVersion |
| FIU firmware version. More... | |
| class | FiuClient |
| Serial client for communicating with the Bloomy Controls Fault Insertion Unit (FIU). More... | |
Typedefs | |
| template<class T> | |
| using | Result = tl::expected<T, ErrorCode> |
| Result type used to return values or error codes from driver functions. | |
Enumerations | |
| enum class | ChannelState : std::uint8_t { kDisconnected = 0 , kConnected = 1 , kVoltageMeasurement = 2 , kCurrentMeasurement = 3 , kGroundFault = 4 } |
| FIU channel states. More... | |
| enum class | ErrorCode : int { kSuccess = 0 , kBoxIDOutOfRange = -1 , kChannelIndexOutOfRange = -2 , kInvalidArgument = -3 , kInvalidResponse = -4 , kAlreadyConnected = -5 , kFailedToOpenPort = -6 , kFailedToConfigurePort = -7 , kNotConnected = -8 , kSendFailed = -9 , kReadTimedOut = -10 , kReadFailed = -11 , kChecksumMismatch = -12 , kSyntaxError = -13 , kSystemInterlocked = -14 , kResourceConflict = -15 , kUnknownDeviceError = -16 , kInvalidObject = -17 , kBufferTooSmall = -18 , kAllocationFailed = -19 , kUnexpectedException = -20 } |
| Error codes returned by the driver. More... | |
Functions | |
| FIU_API const char * | ErrorMessage (ErrorCode ec) noexcept |
| Get a string describing an error code. | |
Variables | |
| constexpr unsigned int | kChannelCount {24U} |
| FIU channel count. | |
Contains FIU-related code.
Result type used to return values or error codes from driver functions.
tl::expected models C++23's std::expected and adds some other useful functions.
| T | type of the expected response |
|
strong |
|
strong |
Error codes returned by the driver.
|
noexcept |
Get a string describing an error code.
| [in] | ec | error code |