Macros | Functions | Variables
NoiseSensor.c File Reference
#include "XdkCommonInfo.h"
#include "BCDS_HAL.h"
#include "BCDS_HALConfig.h"
#include "XDK_NoiseSensor.h"
#include "AdcCentral.h"
#include "Mcu_Adc.h"
#include "BSP_Adc.h"
#include "BCDS_BSP_Mic_AKU340.h"
#include "BCDS_Retcode.h"
#include "FreeRTOS.h"
#include "queue.h"
#include "AdcCentralConfig.h"
#include <stdio.h>
#include <math.h>
+ Include dependency graph for NoiseSensor.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_NOISESENSOR
 

Functions

Retcode_T NoiseSensor_Close (void)
 To close noise sensor module. More...
 
Retcode_T NoiseSensor_Disable (void)
 Disable the noise sensor module and stop adc scan. More...
 
Retcode_T NoiseSensor_Enable (void)
 Enable the noise sensor, Configure the ADC parameters and start ADC scan. More...
 
Retcode_T NoiseSensor_ReadRmsValue (float *rmsValue, uint32_t timeout)
 To read the last calculated RMS voltage. More...
 
Retcode_T NoiseSensor_Setup (uint32_t samplingFreqency)
 Initialize the required components and variables of noise sensor module. More...
 
static void ProcessCH4Data (ADC_T adc, uint32_t samplingFreq, uint16_t *bufferPtr)
 

Variables

static HWHandle_T AdcHandle = NULL
 
static uint16_t CH4UserBuffer [ADC_CENTRAL_NO_OF_SAMPLES] = { 0 }
 
static AdcCentral_ConfigScan_T ConfigScan
 
static QueueHandle_t RmsQueue = NULL
 

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_NOISESENSOR

Function Documentation

static void ProcessCH4Data ( ADC_T  adc,
uint32_t  samplingFreq,
uint16_t *  bufferPtr 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

HWHandle_T AdcHandle = NULL
static
uint16_t CH4UserBuffer[ADC_CENTRAL_NO_OF_SAMPLES] = { 0 }
static
AdcCentral_ConfigScan_T ConfigScan
static
QueueHandle_t RmsQueue = NULL
static

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:03 by doxygen 1.8.8