fromValue static method
- int value
Implementation
static BurtCanStatus fromValue(int value) => switch (value) {
1 => OK,
2 => SOCKET_CREATE_ERROR,
3 => INTERFACE_PARSE_ERROR,
4 => BIND_ERROR,
5 => CLOSE_ERROR,
6 => MTU_ERROR,
7 => CANFD_NOT_SUPPORTED,
8 => FD_MISC_ERROR,
9 => WRITE_ERROR,
10 => READ_ERROR,
11 => FRAME_NOT_FULLY_READ,
_ => throw ArgumentError("Unknown value for BurtCanStatus: $value"),
};