![]() |
Kinetis Bootloader
2.0.0
Common bootloader for Kinetis devices
|
SPI peripheral interface. More...
Collaboration diagram for SPI Peripheral:Data Structures | |
| struct | spi_transfer_info_t |
| Synchronization state between SPI ISR and read/write functions. More... | |
Functions | |
| static bool | spi_poll_for_activity (const peripheral_descriptor_t *self) |
| SPI slave poll for activity function. | |
| static status_t | spi_full_init (const peripheral_descriptor_t *self, serial_byte_receive_func_t function) |
| SPI slave init function. | |
| static void | spi_full_shutdown (const peripheral_descriptor_t *self) |
| SPI slave shutdown function. | |
| static void | spi_data_source (uint8_t *source_byte) |
| SPI slave sending data function. | |
| static void | spi_initial_data_sink (uint8_t sink_byte, uint16_t instance) |
| SPI slave receiving first byte data function. | |
| static void | spi_data_sink (uint8_t sink_byte, uint16_t instance) |
| SPI slave receiving data function. | |
| static status_t | spi_write (const peripheral_descriptor_t *self, const uint8_t *buffer, uint32_t byteCount) |
| SPI slave writing data function. | |
| void | SPI_SetSystemIRQ (uint32_t instance, PeripheralSystemIRQSetting set) |
| void | spi_slave_irq_handler (uint32_t instance) |
| void | SPI0_IRQHandler (void) |
| void | SPI1_IRQHandler (void) |
| void | SPI2_IRQHandler (void) |
Variables | |
| const peripheral_control_interface_t | g_spiControlInterface |
| SPI slave control interface information. More... | |
| const peripheral_byte_inteface_t | g_spiByteInterface = {.init = NULL, .write = spi_write } |
| SPI slave byte interface information. More... | |
| static spi_transfer_info_t | s_spiInfo |
| Global state for the SPI slave peripheral interface. More... | |
| static bool | s_spiActivity [FSL_FEATURE_SOC_SPI_COUNT] = { false } |
| Flag for detecting device activity. | |
| static bool | s_spiIntialized [FSL_FEATURE_SOC_SPI_COUNT] = { false } |
| static serial_byte_receive_func_t | s_spi_app_data_sink_callback |
| SPI slave receiving data call back function. | |
| static const uint32_t | g_spiBaseAddr [] = SPI_BASE_ADDRS |
| static const IRQn_Type | spi_irq_ids [FSL_FEATURE_SOC_SPI_COUNT] |
SPI peripheral interface.
| struct spi_transfer_info_t |
Synchronization state between SPI ISR and read/write functions.
Data Fields | |
| const uint8_t * | writeData |
| The applications data to write. | |
| volatile uint32_t | bytesToTransfer |
| The total number of bytes to be transmitted. | |
| void(* | data_source )(uint8_t *source_byte) |
| void(* | data_sink )(uint8_t sink_byte, uint16_t instance) |
| const peripheral_byte_inteface_t g_spiByteInterface = {.init = NULL, .write = spi_write } |
SPI slave byte interface information.
Byte I/O interface for the SPI peripheral driver.
| const peripheral_control_interface_t g_spiControlInterface |
SPI slave control interface information.
Control interface for the SPI peripheral driver.
|
static |
Global state for the SPI slave peripheral interface.
|
static |