RAIL_FrameType_t Struct Reference
Configure if there is a frame type in your frame and the lengths of each frame.
#include <
rail_types.h
>
Data Fields | |
uint16_t * | frameLen |
Pointer to array of frame lengths for each frame type. | |
uint8_t | offset |
Zero-indexed location of the byte containing the frame type field. | |
uint8_t | mask |
Bit mask of the frame type field. | |
uint8_t | isValid |
Bitmask that marks if each frame is valid or should be filtered. | |
uint8_t | addressFilter |
Bitmask that marks if each frame should have the address filter applied. |
Configure if there is a frame type in your frame and the lengths of each frame.
The number of bits set in the mask determines the number of elements in frameLen. A maximum of 8 different frame types may be specified.
Definition at line 790
of file rail_types.h
.
Field Documentation
◆ addressFilter
uint8_t RAIL_FrameType_t::addressFilter |
Bitmask that marks if each frame should have the address filter applied.
Frame type 0 corresponds to the least significant bit in addressFilter.
Definition at line 819
of file rail_types.h
.
◆ frameLen
uint16_t* RAIL_FrameType_t::frameLen |
Pointer to array of frame lengths for each frame type.
The length of this array should be equal to the number of frame types. The array that frameLen points to should not change location or be modified.
Definition at line 796
of file rail_types.h
.
◆ isValid
uint8_t RAIL_FrameType_t::isValid |
Bitmask that marks if each frame is valid or should be filtered.
Frame type 0 corresponds to the lowest bit in isValid. If the frame is filtered, a RAIL_EVENT_RX_PACKET_ABORTED will be raised.
Definition at line 814
of file rail_types.h
.
◆ mask
uint8_t RAIL_FrameType_t::mask |
Bit mask of the frame type field.
Determines number of frames expected based on the number of bits set. No more than 3 bits can be set in mask. Must be contiguous ones. For example, if the highest three bits of the byte specified by offset constitute the frame type, then mask should be 0xE0, which has 3 bits set, indicating 8 possible frame types.
Definition at line 808
of file rail_types.h
.
The documentation for this struct was generated from the following file:
- common/
rail_types.h