Atmel Software Framework

buffer_element Union Reference

Datatype for the FIFO buffer.

This is a union of all the datatypes which the FIFO service supports. The purpose of this type is to allow for the buffer length (in elements) to be specified instead of the size (in bytes), making it easier to ensure that the buffer is large enough to contain the specified number of all datatypes.

Data Fields

uint8_t byte
 
uint16_t halfword
 
uint32_t word
 

uint8_t buffer_element::byte
uint16_t buffer_element::halfword
uint32_t buffer_element::word