[][src]Crate commune

Structs

Device

Represents a single transceiver

Frame

Represents a packet of information.

Enums

Error

Error handling

MultipartStatus

Start and identify the number of packets this multipart transmission

Constants

BUFFER_DATA_TOTAL_SIZE_BYTES

Total size in bytes for our data buffer.

BUFFER_TOTAL_FRAMES

Max number of frames we can send for a multipart

BUFFER_TOTAL_SIZE_BYTES
CONTROLLER_ID

While each device can act independently, usually a "hub" of some kind is available to aggregate everything. The ID of that hub is, by standard, 0.

DATA_SIZE_BYTES

The amount of bytes per frame data actually takes up. The rest is metadata.

FRAME_SIZE_BYTES

The size of our packet in bytes. This is always 32 for the NRF24L01.

METADATA_SIZE_BYTES

The amount of bytes per frame that metadata occupies, calculated as PACKET_SIZE - DATA_SIZE