mikroSDK Reference Manual
|
The SPI Master driver configuration structure. More...
Data Fields | |
uint8_t | default_write_data |
pin_name_t | sck |
pin_name_t | miso |
pin_name_t | mosi |
uint32_t | speed |
spi_master_mode_t | mode |
The context structure for storing driver configuration. User shall define the values stored within.
spi_master_config_t
structure. Take into consideration that different hardware might not have the same pins. Make sure to accommodate pin name based on your hardware specifics.Example
uint8_t spi_master_config_t::default_write_data |
SPI Master default write data.
pin_name_t spi_master_config_t::sck |
SCK pin name.
pin_name_t spi_master_config_t::miso |
MISO pin name.
pin_name_t spi_master_config_t::mosi |
MOSI pin name.
uint32_t spi_master_config_t::speed |
SPI transfer rate.
spi_master_mode_t spi_master_config_t::mode |
SPI mode.