embedded-software
reusable software modules for embedded systems
|
spi settings structure More...
#include <hal_spi.h>
Data Fields | |
uint8_t | sw_cs_control: 1 |
uint8_t | three_pin: 1 |
0= HW Control, 1= SW Control More... | |
uint8_t | cs_active_low: 1 |
0= 4-pin mode, 1 = 3-pin mode More... | |
uint8_t | word_length: 2 |
0= Active High, 1= Active Low More... | |
uint8_t | turbo_on: 1 |
0= 8-bit, 1= 16-bit, 3= 32-bit More... | |
uint8_t | char7bit: 1 |
char7bit More... | |
uint8_t | msb_first: 1 |
msb_first More... | |
uint8_t | mode16: 1 |
1 = 16bit mode (or 32bit mode), 0 = 8bit mode or 32bit mode (see mode32) More... | |
uint8_t | mode32: 1 |
1 = 32bit mode, 0 = 8bit mode or 16bit mode (see mode 16) More... | |
uint8_t | sample_phase: 1 |
sample phase: 1 = sample at end of data output, 0 = sample in middle More... | |
uint8_t | data_width: 5 |
spi settings structure
Structure for additional hardware specific SPI settings.
uint8_t char7bit |
char7bit
enables 7bit word mode (as oppose to 8bit)
uint8_t cs_active_low |
0= 4-pin mode, 1 = 3-pin mode
uint8_t data_width |
uint8_t mode16 |
1 = 16bit mode (or 32bit mode), 0 = 8bit mode or 32bit mode (see mode32)
uint8_t mode32 |
1 = 32bit mode, 0 = 8bit mode or 16bit mode (see mode 16)
uint8_t msb_first |
msb_first
enables MSB-first serial transmission
uint8_t sample_phase |
sample phase: 1 = sample at end of data output, 0 = sample in middle
uint8_t sw_cs_control |
uint8_t three_pin |
0= HW Control, 1= SW Control
uint8_t turbo_on |
0= 8-bit, 1= 16-bit, 3= 32-bit
uint8_t word_length |
0= Active High, 1= Active Low