Go to the documentation of this file.
60 #ifdef HAL_PDM_MODULE_ENABLED
151 #ifdef APP_DRIVER_WAKEUP_CALL_FUN
303 #endif //#ifdef HAL_PDM_MODULE_ENABLED
304 #endif //#ifndef _APP_PDM_H_
pdm_init_t init
The pdm configuration information.
app_pdm_evt_type_t
PDM event Enumerations definition.
uint16_t app_pdm_stereo_start_dma(uint32_t *p_data, uint32_t length)
Start the pdm dual channel transfer with dma.
app_io_type_t type
Specifies the type of PDM IO.
uint32_t pin
Specifies the IO pins to be configured.
app pdm instance structure.
uint16_t app_pdm_init(app_pdm_params_t *p_params, app_pdm_evt_handler_t evt_handler)
Initialize the APP PDM DRIVER according to the specified parameters in the app_pdm_params_t and app_p...
pdm_env_t pdm_env
App pdm instance structure.
uint16_t app_pdm_abort(void)
Abort the pdm transfer.
app_pdm_evt_type_t type
Type of event.
app_io_pull_t
GPIO pull Enumerations definition.
app_io_type_t
GPIO type Enumerations definition.
app_pdm_state_t pdm_state
Pdm state types.
ll_pdm_init_t pdm_init_t
PDM init structure definition.
PDM parameters structure definition.
app_pdm_pin_t clk
Set the configuration of PDM CLK pin.
app_pdm_pin_t data
Set the configuration of PDM DATA pin.
app_pdm_evt_handler_t evt_handler
Pdm event callback.
LL DMA sg and llp config definition.
uint16_t app_pdm_left_start_dma_sg_llp(uint16_t *p_data, uint32_t length, dma_sg_llp_config_t *sg_llp_config)
Start the pdm left channel transfer with dma's sg and llp functions.
pdm_handle_t * app_pdm_get_handle(void)
Return the PDM handle.
pdm_handle_t handle
Pdm handle Structure.
Header file containing functions prototypes of GPIO app library.
app_io_mux_t mux
Specifies the Peripheral to be connected to the selected pins.
uint32_t error_code
PDM error code .
@ APP_PDM_EVT_LEFT_OVERFLOW
The event of left channel overflow.
This file contains all the functions prototypes for the HAL module driver.
uint16_t app_pdm_right_start_dma_sg_llp(uint16_t *p_data, uint32_t length, dma_sg_llp_config_t *sg_llp_config)
Start the pdm right channel transfer with dma's sg and llp functions.
uint16_t app_pdm_right_start_dma(uint16_t *p_data, uint32_t length)
Start the pdm right channel transfer with dma.
@ APP_PDM_EVT_DMA_ERROR
The event of dma error interrupt.
@ APP_PDM_EVT_DMA_TFR
The event of transfer complete interrupt.
app_pdm_state_t
pdm state types.
PDM handle Structure definition.
dma_channel_t dma_channel
Specifies the channel of PDM.
PDM operate mode Enumerations definition.
Header file containing functions prototypes of DMA app library.
PDM event structure definition.
uint16_t app_pdm_left_start_dma(uint16_t *p_data, uint32_t length)
Start the pdm left channel transfer with dma.
dma_regs_t * dma_instance
Specifies the DMA instance.
void(* app_pdm_evt_handler_t)(app_pdm_evt_t *type)
PDM event callback definition.
app_pdm_pin_cfg_t pin_cfg
The pin configuration information .
app_io_pull_t pull
Specifies the Pull-up or Pull-Down activation for the selected pins.
app_io_mux_t
GPIO mux Enumerations definition.
@ APP_PDM_EVT_DMA_BLK
The event of dma block interrupt.
uint16_t app_pdm_deinit(void)
De-initialize the APP PDM DRIVER peripheral.
@ APP_PDM_EVT_RIGHT_OVERFLOW
The event of right channel overflow.
Header file of app driver error code.
Header file of app driver config code.
PDM IO configuration Structures.
int16_t dma_id_t
DMA id definition.
uint16_t app_pdm_stereo_start_dma_sg_llp(uint32_t *p_data, uint32_t length, dma_sg_llp_config_t *sg_llp_config)
Start the pdm dual channel transfer with dma's sg and llp functions.
app_pdm_dma_t dma_cfg
The dma configuration information.
dma_channel_t
HAL DMA Channel Enumerations definition.
app_pdm_pin_cfg_t * p_pin_cfg
Pdm IO Structures.