SPI object.
Application code should not rely on the specific contents of this struct. They are considered an implementation detail which is subject to change between platforms and/or HAL releases.
Data Fields | |
| CySCB_Type * | base |
| Base address for the SCB. | |
| const mtb_hal_clock_t * | clock |
| Clock interface. | |
| cy_stc_scb_spi_context_t * | context |
| PDL context. | |
| uint16_t volatile | pending |
| Flags for pending operations. | |
| bool | is_target |
| Configured as target. | |
| uint8_t | data_bits |
| Width of data bus. | |
| uint32_t | irq_cause |
| User-enabled events. | |
| uint8_t | write_fill |
| Placeholder value when reading more than writing. | |
| void * | rx_buffer |
| Buffer for read operations. | |
| uint32_t | rx_buffer_size |
| Size of read buffer. | |
| const void * | tx_buffer |
| Buffer for write operations. | |
| uint32_t | tx_buffer_size |
| Size of write buffer. | |
| bool | is_async |
| Is an async operation in progress. | |
| _mtb_hal_event_callback_data_t | callback_data |
| User-registered callback. | |
| CySCB_Type* mtb_hal_spi_t::base |
Base address for the SCB.
| const mtb_hal_clock_t* mtb_hal_spi_t::clock |
Clock interface.
| cy_stc_scb_spi_context_t* mtb_hal_spi_t::context |
PDL context.
| uint16_t volatile mtb_hal_spi_t::pending |
Flags for pending operations.
| bool mtb_hal_spi_t::is_target |
Configured as target.
| uint8_t mtb_hal_spi_t::data_bits |
Width of data bus.
| uint32_t mtb_hal_spi_t::irq_cause |
User-enabled events.
| uint8_t mtb_hal_spi_t::write_fill |
Placeholder value when reading more than writing.
| void* mtb_hal_spi_t::rx_buffer |
Buffer for read operations.
| uint32_t mtb_hal_spi_t::rx_buffer_size |
Size of read buffer.
| const void* mtb_hal_spi_t::tx_buffer |
Buffer for write operations.
| uint32_t mtb_hal_spi_t::tx_buffer_size |
Size of write buffer.
| bool mtb_hal_spi_t::is_async |
Is an async operation in progress.
| _mtb_hal_event_callback_data_t mtb_hal_spi_t::callback_data |
User-registered callback.