pub enum TransceiverError<SpiErr, CeErr> {
Spi(SpiErr),
Ce(CeErr),
Comm(u8),
MaxRetries,
BufferTooSmall {
required: u8,
actual: u8,
},
}
Expand description
Represents all possible errors that can occur when using the nRF24L01 transceiver.
This error type is generic over the underlying SPI and CE pin error types.
Variants§
Spi(SpiErr)
An error occurred during SPI communication.
This typically represents a failure in the hardware communication layer, such as bus contention or device disconnection.
Ce(CeErr)
An error occurred when controlling the Chip Enable (CE) pin.
This could happen if the GPIO pin controlling the CE line encounters a hardware failure or configuration issue.
Comm(u8)
A communication error occurred with the nRF24L01 module.
The wrapped value is a status byte from the device that indicates the specific nature of the communication failure.
MaxRetries
The maximum number of retransmit attempts was reached without receiving an ACK.
This occurs when auto-acknowledgement is enabled and the receiver does not acknowledge receipt of the transmitted packet after the configured number of retries.
BufferTooSmall
The provided buffer is too small for the requested operation.
This error includes information about the required buffer size and the actual size that was provided.