This section documents the macros that can be used to check if a specific driver is available for the current device.
This includes macros for all HAL drivers that exist for any device, even those that are not applicable (included) with this library. This is intended to help write code that can port between device categories that might not have the same drivers available.
|
|
#define | MTB_HAL_MAP_SPI_IRQ_DATA_IN_FIFO (CY_SCB_SPI_TRANSFER_IN_FIFO_EVENT) |
| | SPI HAL to PDL enum map to enable/disable/report interrupt cause flags.
|
| |
|
#define | MTB_HAL_MAP_UART_IRQ_TX_TRANSMIT_IN_FIFO (CY_SCB_UART_TRANSMIT_IN_FIFO_EVENT) |
| | UART HAL to PDL enum map to enable/disable/report interrupt cause flags.
|
| |
|
#define | MTB_HAL_DRIVER_AVAILABLE_CLOCK (1u) |
| | Macro specifying whether the Clock driver is available for the current device.
|
| |
|
#define | MTB_HAL_DRIVER_AVAILABLE_GPIO_PORT (1u) |
| | Macro specifying whether the GPIO Port driver is available for the current device.
|
| |
◆ mtb_hal_memoryspi_t
| struct mtb_hal_memoryspi_t |
| Data Fields |
|
SMIF_Type * |
base |
Base address for the SMIF. |
|
cy_en_smif_slave_select_t |
chip_select |
Active chip select */. |
|
uint32_t |
configured_csel |
All configured chip selects */. |
|
uint32_t |
instNumber |
SMIF instance number. |
|
cy_stc_smif_context_t * |
context |
SMIF context for PDL use. |
|
uint32_t |
enabled_events |
Events enabled by the user. |
|
_mtb_hal_event_callback_data_t |
callback_data |
Registered callback, if any. |
|
const mtb_hal_clock_t * |
clock |
Associated clock instance. |