File ns_pdm.c
Go to the source code of this file
Driver for Ambiq PDM Microphone interface. More...
#include "ns_pdm.h"
#include "am_bsp.h"
#include "am_mcu_apollo.h"
#include "am_util.h"
#include "ns_audio.h"
#include "ns_core.h"
Public Attributes
Type | Name |
---|---|
ns_pdm_cfg_t | ns_pdm_default = = { |
.clock = NS_CLKSEL_HFRC, | |
.clock_freq = NS_AUDIO_PDM_CLK_750KHZ, | |
.mic = NS_AUDIO_PDM_MICBOARD_0, | |
.numBytes = NS_AUDIO_PDM_SAMPLE_16BIT, | |
} |
Public Static Attributes
Type | Name |
---|---|
void * | pvPDMHandle |
Public Functions
Type | Name |
---|---|
void | am_pdm0_isr (void) |
void | pdm_deinit (ns_audio_config_t * config) |
uint32_t | pdm_init (ns_audio_config_t * config) AUDADC subsystem init - should only be invoked by ns_audio, not directly. |
void | pdm_trigger_dma (ns_audio_config_t * config) |
Detailed Description
Author:
Ambiq
Version:
0.1
Date:
2023-05-17
Copyright:
Copyright (c) 2023
Public Attributes Documentation
variable ns_pdm_default
ns_pdm_cfg_t ns_pdm_default;
Public Static Attributes Documentation
variable pvPDMHandle
void* pvPDMHandle;
Public Functions Documentation
function am_pdm0_isr
void am_pdm0_isr (
void
)
function pdm_deinit
void pdm_deinit (
ns_audio_config_t * config
)
function pdm_init
uint32_t pdm_init (
ns_audio_config_t * config
)
function pdm_trigger_dma
void pdm_trigger_dma (
ns_audio_config_t * config
)
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-audio/src/apollo3/ns_pdm.c