Aliases for types which are part of the public HAL interface but whose representations need to vary per HAL implementation.
|
enum | cyhal_resource_t {
CYHAL_RSC_ADC,
CYHAL_RSC_BLESS,
CYHAL_RSC_CAN,
CYHAL_RSC_CLKPATH,
CYHAL_RSC_CLOCK,
CYHAL_RSC_CRYPTO,
CYHAL_RSC_DAC,
CYHAL_RSC_DMA,
CYHAL_RSC_DW,
CYHAL_RSC_GPIO,
CYHAL_RSC_I2S,
CYHAL_RSC_LCD,
CYHAL_RSC_LPCOMP,
CYHAL_RSC_LPTIMER,
CYHAL_RSC_OPAMP,
CYHAL_RSC_PDM,
CYHAL_RSC_SMIF,
CYHAL_RSC_RTC,
CYHAL_RSC_SCB,
CYHAL_RSC_SDHC,
CYHAL_RSC_TCPWM,
CYHAL_RSC_UDB,
CYHAL_RSC_USB,
CYHAL_RSC_INVALID
} |
| Resource types that the hardware manager supports. More...
|
|
enum | cyhal_clock_block_t {
CYHAL_CLOCK_BLOCK_PERIPHERAL_8BIT = CY_SYSCLK_DIV_8_BIT,
CYHAL_CLOCK_BLOCK_PERIPHERAL_16BIT = CY_SYSCLK_DIV_16_BIT,
CYHAL_CLOCK_BLOCK_PERIPHERAL_16_5BIT = CY_SYSCLK_DIV_16_5_BIT,
CYHAL_CLOCK_BLOCK_PERIPHERAL_24_5BIT = CY_SYSCLK_DIV_24_5_BIT,
CYHAL_CLOCK_BLOCK_IMO,
CYHAL_CLOCK_BLOCK_ECO,
CYHAL_CLOCK_BLOCK_EXT,
CYHAL_CLOCK_BLOCK_ALTHF,
CYHAL_CLOCK_BLOCK_ALTLF,
CYHAL_CLOCK_BLOCK_ILO,
CYHAL_CLOCK_BLOCK_PILO,
CYHAL_CLOCK_BLOCK_WCO,
CYHAL_CLOCK_BLOCK_MFO,
CYHAL_CLOCK_BLOCK_PATHMUX,
CYHAL_CLOCK_BLOCK_FLL,
CYHAL_CLOCK_BLOCK_PLL,
CYHAL_CLOCK_BLOCK_LF,
CYHAL_CLOCK_BLOCK_MF,
CYHAL_CLOCK_BLOCK_HF,
CYHAL_CLOCK_BLOCK_PUMP,
CYHAL_CLOCK_BLOCK_BAK,
CYHAL_CLOCK_BLOCK_TIMER,
CYHAL_CLOCK_BLOCK_ALT_SYS_TICK,
CYHAL_CLOCK_BLOCK_FAST,
CYHAL_CLOCK_BLOCK_PERI,
CYHAL_CLOCK_BLOCK_SLOW
} |
| Enum for the different types of clocks that exist on the device. More...
|
|
◆ cyhal_clock_t
Data Fields |
cy_en_divider_types_t |
div_type |
Deprecated
|
uint8_t |
div_num |
Deprecated
|
cyhal_clock_block_t |
block |
|
uint8_t |
channel |
|
bool |
reserved |
|
◆ cyhal_resource_inst_t
struct cyhal_resource_inst_t |
Data Fields |
cyhal_resource_t |
type |
The resource block type. |
uint8_t |
block_num |
The resource block index. |
uint8_t |
channel_num |
The channel number, if the resource type defines multiple channels per block instance. Otherwise, 0
|
◆ cyhal_event_callback_data_t
struct cyhal_event_callback_data_t |
Data Fields |
cy_israddress |
callback |
|
void * |
callback_arg |
|
◆ cyhal_tcpwm_t
◆ cyhal_dma_t
◆ cyhal_dma_t.channel_config
union cyhal_dma_t.channel_config |
Data Fields |
cy_stc_dma_channel_config_t |
dw |
|
cy_stc_dmac_channel_config_t |
dmac |
|
◆ cyhal_dma_t.descriptor_config
union cyhal_dma_t.descriptor_config |
Data Fields |
cy_stc_dma_descriptor_config_t |
dw |
|
cy_stc_dmac_descriptor_config_t |
dmac |
|
◆ cyhal_dma_t.descriptor
union cyhal_dma_t.descriptor |
Data Fields |
cy_stc_dma_descriptor_t |
dw |
|
cy_stc_dmac_descriptor_t |
dmac |
|
◆ cyhal_adc_t
Data Fields |
SAR_Type * |
base |
|
cyhal_resource_inst_t |
resource |
|
cyhal_clock_t |
clock |
|
bool |
dedicated_clock |
|
bool |
continuous_scanning |
|
volatile bool |
conversion_complete |
|
struct _cyhal_adc_channel_s * |
channel_config[CY_SAR_MAX_NUM_CHANNELS] |
|
uint8_t |
user_enabled_events |
|
cyhal_event_callback_data_t |
callback_data |
|
cyhal_async_mode_t |
async_mode |
|
cyhal_dma_t |
dma |
|
int32_t * |
async_buff_orig |
|
int32_t * |
async_buff_next |
|
bool |
async_transfer_in_uv |
|
size_t |
async_scans_remaining |
|
◆ cyhal_adc_channel_t
struct cyhal_adc_channel_t |
◆ cyhal_comp_t
◆ cyhal_comp_t.__unnamed__
union cyhal_comp_t.__unnamed__ |
Data Fields |
LPCOMP_Type * |
base_lpcomp |
|
◆ cyhal_crc_t
◆ cyhal_dac_t
◆ cyhal_opamp_t
◆ cyhal_flash_t
◆ cyhal_i2c_t
◆ cyhal_ezi2c_t
◆ cyhal_i2s_t
◆ cyhal_lptimer_t
◆ cyhal_pdm_pcm_t
◆ cyhal_pwm_t
◆ cyhal_qspi_t
◆ cyhal_trng_t
◆ cyhal_rtc_t
◆ cyhal_sdhc_t
◆ cyhal_sdio_t
◆ cyhal_spi_t
Data Fields |
CySCB_Type * |
base |
|
cyhal_resource_inst_t |
resource |
|
cyhal_gpio_t |
pin_miso |
|
cyhal_gpio_t |
pin_mosi |
|
cyhal_gpio_t |
pin_sclk |
|
cyhal_gpio_t |
pin_ssel[4] |
|
cy_en_scb_spi_polarity_t |
ssel_pol[4] |
|
uint8_t |
active_ssel |
|
cyhal_clock_t |
clock |
|
cy_en_scb_spi_sclk_mode_t |
clk_mode |
|
uint8_t |
mode |
|
uint8_t |
data_bits |
|
bool |
is_slave |
|
bool |
alloc_clock |
|
uint8_t |
oversample_value |
|
bool |
msb_first |
|
cy_stc_scb_spi_context_t |
context |
|
uint32_t |
irq_cause |
|
uint16_t volatile |
pending |
|
uint8_t |
write_fill |
|
void * |
rx_buffer |
|
uint32_t |
rx_buffer_size |
|
const void * |
tx_buffer |
|
uint32_t |
tx_buffer_size |
|
bool |
is_async |
|
cyhal_event_callback_data_t |
callback_data |
|
◆ cyhal_timer_t
◆ cyhal_uart_t
◆ cyhal_usb_dev_t
◆ cyhal_wdt_t
Data Fields |
uint8_t |
placeholder |
|
◆ CYHAL_ISR_PRIORITY_DEFAULT
#define CYHAL_ISR_PRIORITY_DEFAULT (7) |
Priority that is applied by default to all drivers when initalized.
Priorities can be overridden on each driver as part of enabling events.
◆ cyhal_source_t
◆ cyhal_resource_t
Resource types that the hardware manager supports.
Enumerator |
---|
CYHAL_RSC_ADC | Analog to digital converter
|
CYHAL_RSC_BLESS | Bluetooth communications block
|
CYHAL_RSC_CAN | CAN communication block
|
CYHAL_RSC_CLKPATH | Clock Path. DEPRECATED.
|
CYHAL_RSC_CLOCK | Clock
|
CYHAL_RSC_CRYPTO | Crypto hardware accelerator
|
CYHAL_RSC_DAC | Digital to analog converter
|
CYHAL_RSC_DMA | DMA controller
|
CYHAL_RSC_DW | Datawire DMA controller
|
CYHAL_RSC_GPIO | General purpose I/O pin
|
CYHAL_RSC_I2S | I2S communications block
|
CYHAL_RSC_LCD | Segment LCD controller
|
CYHAL_RSC_LPCOMP | Low power comparator
|
CYHAL_RSC_LPTIMER | Low power timer
|
CYHAL_RSC_OPAMP | Opamp
|
CYHAL_RSC_PDM | PCM/PDM communications block
|
CYHAL_RSC_SMIF | Quad-SPI communications block
|
CYHAL_RSC_RTC | Real time clock
|
CYHAL_RSC_SCB | Serial Communications Block
|
CYHAL_RSC_SDHC | SD Host Controller
|
CYHAL_RSC_TCPWM | Timer/Counter/PWM block
|
CYHAL_RSC_UDB | UDB Array
|
CYHAL_RSC_USB | USB communication block
|
CYHAL_RSC_INVALID | Placeholder for invalid type
|
◆ cyhal_clock_block_t
Enum for the different types of clocks that exist on the device.
Enumerator |
---|
CYHAL_CLOCK_BLOCK_PERIPHERAL_8BIT | 8bit Peripheral Divider
|
CYHAL_CLOCK_BLOCK_PERIPHERAL_16BIT | 16bit Peripheral Divider
|
CYHAL_CLOCK_BLOCK_PERIPHERAL_16_5BIT | 16.5bit Peripheral Divider
|
CYHAL_CLOCK_BLOCK_PERIPHERAL_24_5BIT | 24.5bit Peripheral Divider
|
CYHAL_CLOCK_BLOCK_IMO | Internal Main Oscillator Input Clock
|
CYHAL_CLOCK_BLOCK_ECO | External Crystal Oscillator Input Clock
|
CYHAL_CLOCK_BLOCK_EXT | External Input Clock
|
CYHAL_CLOCK_BLOCK_ALTHF | Alternate High Frequency Input Clock
|
CYHAL_CLOCK_BLOCK_ALTLF | Alternate Low Frequency Input Clock
|
CYHAL_CLOCK_BLOCK_ILO | Internal Low Speed Oscillator Input Clock
|
CYHAL_CLOCK_BLOCK_PILO | Precision ILO Input Clock
|
CYHAL_CLOCK_BLOCK_WCO | Watch Crystal Oscillator Input Clock
|
CYHAL_CLOCK_BLOCK_MFO | Medium Frequency Oscillator Clock
|
CYHAL_CLOCK_BLOCK_PATHMUX | Path selection mux for input to FLL/PLLs
|
CYHAL_CLOCK_BLOCK_FLL | Frequency-Locked Loop Clock
|
CYHAL_CLOCK_BLOCK_PLL | Phase-Locked Loop Clock
|
CYHAL_CLOCK_BLOCK_LF | Low Frequency Clock
|
CYHAL_CLOCK_BLOCK_MF | Medium Frequency Clock
|
CYHAL_CLOCK_BLOCK_HF | High Frequency Clock
|
CYHAL_CLOCK_BLOCK_PUMP | Analog Pump Clock
|
CYHAL_CLOCK_BLOCK_BAK | Backup Power Domain Clock
|
CYHAL_CLOCK_BLOCK_TIMER | Timer Clock
|
CYHAL_CLOCK_BLOCK_ALT_SYS_TICK | Alternative SysTick Clock
|
CYHAL_CLOCK_BLOCK_FAST | Fast Clock for CM4
|
CYHAL_CLOCK_BLOCK_PERI | Peripheral Clock
|
CYHAL_CLOCK_BLOCK_SLOW | Slow Clock for CM0+
|