AEM
|
#include <yspi.h>
Data Fields | |
const uint8_t | udre |
const uint8_t | rxc |
const uint8_t | txc |
const uint8_t | ddCLK |
const uint8_t | ddSS |
const uint8_t | umsel0 |
const uint8_t | umsel1 |
const uint8_t | txen |
const uint8_t | rxen |
const uint8_t | portSS |
uartSpecificBitValueStruct contains bit ids that are used in the USART operations Examples of bit values and their meaning and usage: UDRE0 // UART Data Register Empty 0 is for USART0 ! RXC0 // Receive Complete Bit, 0 is for USART 0! TXC0 // Transmit Complete Bit, 0 is for USART 0 ! DDD4 // Data Direction bit 'D4' implies 'pin D4', this bit ID depends on the CLK pin used DDD5 // Data Direction bit 'D5' implies 'pin D5' this bit depends on the SS pin used UMSEL00 // USART Mode Select bit 0, 'UMSELn0' implies 'USART Mode Select bit 0 for USART n', this bit depends on which USART channel is used UMSEL01 // USART Mode Select bit 1, 'UMSELn1' implies 'USART Mode Select bit 1 for USART n', this bit depends on which USART channel is used TXEN0 // Transmitter Enable BIT: 0 is for USART 0 ! RXEN0 // Receiver Enable BIT: 0 is for USART 0 ! PORTD5 // Digital Pin Value Set bit: setting this bit implies pin set to HIGH, unsetting implies pin set to LOW, 'D5' is the SS pin ID this pin ID depends on the SS pin used
all values are specific to the USART channel and SS pins used.
const uint8_t USARTSPI::uartSpecificBitValueStruct::ddCLK |
Data Direction bit for the specific CLK pin
const uint8_t USARTSPI::uartSpecificBitValueStruct::ddSS |
Data Direction bit for the specific SS pin
const uint8_t USARTSPI::uartSpecificBitValueStruct::portSS |
Digital Pin Value Set bit for the specific SS pin
const uint8_t USARTSPI::uartSpecificBitValueStruct::rxc |
Receive Complete Bit,
const uint8_t USARTSPI::uartSpecificBitValueStruct::rxen |
Receiver Enable BIT
const uint8_t USARTSPI::uartSpecificBitValueStruct::txc |
Transmit Complete Bit
const uint8_t USARTSPI::uartSpecificBitValueStruct::txen |
Transmitter Enable BIT
const uint8_t USARTSPI::uartSpecificBitValueStruct::udre |
UART Data Register Empty bit
const uint8_t USARTSPI::uartSpecificBitValueStruct::umsel0 |
USART Mode Select bit 0 for the specific USART channel
const uint8_t USARTSPI::uartSpecificBitValueStruct::umsel1 |
USART Mode Select bit 1 for the specific USART channel