#[repr(u32)]pub enum BMStatus {
Show 27 variants
Ok = 0,
XmtFull = 1,
Overrun = 2,
BusLight = 4,
BusWarning = 8,
BusPassive = 262_144,
BusTimeout = 524_288,
BusOff = 16,
AnyBusError = 262_172,
ReceiveBufferEmpty = 32,
QueueOverrun = 64,
TransmitQueueFull = 128,
RegTest = 256,
NoDriver = 512,
HardwareInUse = 1_024,
NetInUse = 2_048,
HardwareError = 5_120,
InvalidBus = 6_144,
InvalidClient = 7_168,
OutOfResources = 8_192,
InvalidParameterType = 16_384,
InvalidParameterValue = 32_768,
Unknown = 65_536,
InvalidData = 131_072,
Caution = 33_554_432,
NotInitialized = 67_108_864,
InvalidOperation = 134_217_728,
}Expand description
Busmust device & operation status, most APIs would return a status code to indicate the result of an operation
Variants§
Ok = 0
SUCCESS: No error occurred
XmtFull = 1
Low level Transmit buffer is full
Overrun = 2
Bus overrun (the device cannot keep up with the high bus throughput)
BusLight = 4
CAN Bus communication is light, see ISO11898 for details
BusWarning = 8
CAN Bus communication is in warning state, see ISO11898 for details
BusPassive = 262_144
CAN node is in passive state, see ISO11898 for details
BusTimeout = 524_288
CAN node failed to transmit message within specified time, the node might be in PASSIVE or BUS-OFF state
BusOff = 16
CAN bus is in BUS-OFF state, see ISO11898 for details
AnyBusError = 262_172
CAN bus error occurred
ReceiveBufferEmpty = 32
Receive buffer is empty, this might NOT be an error if you use BM API in polling mode
QueueOverrun = 64
BM API internal queue overrun
TransmitQueueFull = 128
High level Transmit queue is full
RegTest = 256
Reserved
NoDriver = 512
Reserved
HardwareInUse = 1_024
Hardware is in use (opened by another application)
NetInUse = 2_048
Reserved
HardwareError = 5_120
Hardware error or invalid hardware handle
InvalidBus = 6_144
Invalid bus
InvalidClient = 7_168
Invalid client
OutOfResources = 8_192
Out of resources
InvalidParameterType = 16_384
Invalid parameter type in API call
InvalidParameterValue = 32_768
Invalid parameter value in API call
Unknown = 65_536
Unknown error
InvalidData = 131_072
Invalid data received/transmitted
Caution = 33_554_432
Reserved
NotInitialized = 67_108_864
The device/library is not initialized
InvalidOperation = 134_217_728
Invalid operation