VAD driver APIs. More...
Data Structures | |
| struct | vad_config |
| vad config More... | |
Macros | |
| #define | VAD_EVENT_VAD (1U << 7) |
| vad event More... | |
| #define | VAD_EVENT_FIFO_DATA_AVAILABLE (1U << 6) |
| #define | VAD_EVENT_MEMBUF_EMPTY (1U << 5) |
| #define | VAD_EVENT_FIFO_OVERFLOW (1U << 4) |
| #define | VAD_EVENT_IIR_OVERLOAD (1U << 3) |
| #define | VAD_EVENT_IIR_OVERFLOW (1U << 2) |
| #define | VAD_EVENT_CIC_OVERLOAD_ERROR (1U << 1) |
| #define | VAD_EVENT_CIC_STA_ERROR (1U << 0) |
Typedefs | |
| typedef struct vad_config | vad_config_t |
| vad config More... | |
Functions | |
| static void | vad_set_capture_delay (VAD_Type *ptr, uint8_t delay) |
| set capture deplay cycle More... | |
| static void | vad_set_pdm_clock_half_div (VAD_Type *ptr, uint8_t div) |
| set pdm clock hald_divider More... | |
| static void | vad_enable_irq (VAD_Type *ptr, uint32_t irq_mask) |
| enable irq More... | |
| static void | vad_disable_irq (VAD_Type *ptr, uint32_t irq_mask) |
| disable irq More... | |
| static void | vad_disable_buffer (VAD_Type *ptr) |
| disable buffer More... | |
| static void | vad_enable_buffer (VAD_Type *ptr) |
| enable buffer More... | |
| static void | vad_set_fifo_threshold (VAD_Type *ptr, uint8_t threshold) |
| set fifo threshold More... | |
| static void | vad_enable_pdm_clock_out (VAD_Type *ptr) |
| enable pdm clock out More... | |
| static void | vad_disable_pdm_clock_out (VAD_Type *ptr) |
| disable pdm clock out More... | |
| static void | vad_set_pdm_clock_capture_level (VAD_Type *ptr, uint8_t level) |
| set pdm clock polarity More... | |
| static void | vad_set_channel_number (VAD_Type *ptr, bool two_channels) |
| set channel number More... | |
| static uint32_t | vad_get_status (VAD_Type *ptr) |
| get status More... | |
| static void | vad_clear_status (VAD_Type *ptr, uint32_t mask) |
| slear status More... | |
| static uint32_t | vad_get_data (VAD_Type *ptr) |
| get data More... | |
| static void | vad_software_reset (VAD_Type *ptr) |
| software reset More... | |
| static void | vad_start (VAD_Type *ptr) |
| start More... | |
| static void | vad_stop (VAD_Type *ptr) |
| stop More... | |
| static bool | vad_is_running (VAD_Type *ptr) |
| check whether vad is running More... | |
| static void | vad_enable_fifo (VAD_Type *ptr) |
| enable fifo More... | |
| static void | vad_disable_fifo (VAD_Type *ptr) |
| disable fifo More... | |
| static uint32_t | vad_get_coef_value (VAD_Type *ptr, uint32_t index) |
| get coefficient value More... | |
| static void | vad_set_post_scale (VAD_Type *ptr, uint8_t post_scale) |
| set ouptput value post scale More... | |
| static void | vad_set_amplify (VAD_Type *ptr, uint16_t high, uint16_t low) |
| set sampling signal amplitude limits More... | |
| void | vad_get_default_config (VAD_Type *ptr, vad_config_t *config) |
| get default config More... | |
| void | vad_init (VAD_Type *ptr, vad_config_t *config) |
| initialization More... | |
| void | vad_reset (VAD_Type *ptr) |
| reset More... | |
VAD driver APIs.
| #define VAD_EVENT_CIC_OVERLOAD_ERROR (1U << 1) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_CIC_STA_ERROR (1U << 0) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_FIFO_DATA_AVAILABLE (1U << 6) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_FIFO_OVERFLOW (1U << 4) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_IIR_OVERFLOW (1U << 2) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_IIR_OVERLOAD (1U << 3) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_MEMBUF_EMPTY (1U << 5) |
#include <drivers/inc/hpm_vad_drv.h>
| #define VAD_EVENT_VAD (1U << 7) |
#include <drivers/inc/hpm_vad_drv.h>
vad event
| typedef struct vad_config vad_config_t |
#include <drivers/inc/hpm_vad_drv.h>
vad config
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
slear status
| [in] | ptr | VAD base address |
| [in] | mask | status mask value |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
disable irq
| [in] | ptr | VAD base address |
| [in] | irq_mask | irq mask value |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
enable irq
| [in] | ptr | VAD base address |
| [in] | irq_mask | irq mask value |
|
inlinestatic |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
get coefficient value
| [in] | ptr | VAD base address |
| [in] | index | coefficient index |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
get data
| [in] | ptr | VAD base address |
| OFIFO | register value |
| void vad_get_default_config | ( | VAD_Type * | ptr, |
| vad_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_vad_drv.h>
get default config
| [in] | ptr | VAD base address |
| [out] | config | vad_config_t |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
get status
| [in] | ptr | VAD base address |
| ST | register value |
| void vad_init | ( | VAD_Type * | ptr, |
| vad_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_vad_drv.h>
initialization
| [in] | ptr | VAD base address |
| [in] | config | vad_config_t |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
check whether vad is running
| [in] | ptr | VAD base address |
| true | if vad is running |
| void vad_reset | ( | VAD_Type * | ptr | ) |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set sampling signal amplitude limits
| [in] | ptr | VAD base address |
| [in] | high | high limit |
| [in] | low | low limit |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set capture deplay cycle
| [in] | ptr | VAD base address |
| [in] | delay | delay cycle value |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set channel number
| [in] | ptr | VAD base address |
| [in] | two_channels |
|
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set fifo threshold
| [in] | ptr | VAD base address |
| [in] | threshold | fifo threshold value |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set pdm clock polarity
| [in] | ptr | VAD base address |
| [in] | level | clock polarity |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set pdm clock hald_divider
| [in] | ptr | VAD base address |
| [in] | div | divider value |
|
inlinestatic |
#include <drivers/inc/hpm_vad_drv.h>
set ouptput value post scale
| [in] | ptr | VAD base address |
| [in] | post_scale | post scale value |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |