XDK API  3.6.0
Documentation
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
AdcCentral.c File Reference
#include "XdkCommonInfo.h"
#include "AdcCentral.h"
#include "Mcu_Adc.h"
#include "Mcu_Adc_Handle.h"
#include "BCDS_MCU_DMA_Handle.h"
#include "BCDS_GuardedTask.h"
#include "BSP_Adc.h"
#include "FreeRTOS.h"
#include "semphr.h"
#include "em_dma.h"
#include "AdcCentralConfig.h"
+ Include dependency graph for AdcCentral.c:

Data Structures

struct  AdcCentral_Info_S
 
struct  AdcCentral_ScanChannelInfo_S
 
struct  AdcCentral_SingleChannelInfo_S
 

Macros

#define ADC_DMA_BUFFER_SIZE   (2*ADC_CENTRAL_NO_OF_SAMPLES*MAX_NO_OF_SCAN_CHANNELS)
 
#define BCDS_MODULE_ID   XDK_COMMON_ID_ADCCENTRAL
 
#define MAX_NO_OF_SCAN_CHANNELS   3
 

Typedefs

typedef struct AdcCentral_Info_S AdcCentral_Info_T
 
typedef struct
AdcCentral_ScanChannelInfo_S 
AdcCentral_ScanChannelInfo_T
 
typedef struct
AdcCentral_SingleChannelInfo_S 
AdcCentral_SingleChannelInfo_T
 
typedef enum
AdcCentral_SingleState_E 
AdcCentral_SingleState_T
 
typedef enum AdcCentral_State_E AdcCentral_State_T
 

Enumerations

enum  AdcCentral_SingleState_E
 
enum  AdcCentral_State_E
 

Functions

Retcode_T AdcCentral_DeInit (void)
 De-Initialize the ADC Module. More...
 
Retcode_T AdcCentral_Init (void)
 Initialize the ADC Central Module. More...
 
Retcode_T AdcCentral_StartScan (ADC_T adc, AdcCentral_ConfigScanPtr_T configScan)
 Start Scan Mode on ADC Interface & Start the PRS Timer as producer. More...
 
Retcode_T AdcCentral_StartSingle (ADC_T adc, AdcCentral_ConfigSinglePtr_T configStart)
 Start Single Mode on ADC Interface. More...
 
Retcode_T AdcCentral_StopScan (ADC_T adc, uint32_t ChannelScanMask)
 Stop the Scan mode on ADC Interface and stops the PRS timer used for sampling adc channels. More...
 
void AdcIRQCallback (ADC_T adc, Mcu_Adc_Event_T event, uint16_t *buff)
 
static uint8_t findindexOfScanChannel (uint32_t channelMask)
 
static Retcode_T findScanChannelsInfo (uint8_t *ChannelCnt, uint8_t *ChannelNo, uint32_t ChannelMask)
 
static bool IsChannelAlreadyActivated (uint32_t channelMask)
 
static bool IsScanChannelActive (Adc_Channel_T channel)
 
static void receiveProcess (void)
 

Variables

AdcCentral_Info_T AdcCentalInfo
 
static volatile uint16_t * bufferPointer
 
static uint16_t scanDataBufffer [ADC_DMA_BUFFER_SIZE]
 

Macro Definition Documentation

#define ADC_DMA_BUFFER_SIZE   (2*ADC_CENTRAL_NO_OF_SAMPLES*MAX_NO_OF_SCAN_CHANNELS)
#define BCDS_MODULE_ID   XDK_COMMON_ID_ADCCENTRAL
#define MAX_NO_OF_SCAN_CHANNELS   3

Typedef Documentation

Enumeration of ADC central single conversion state machine states.

Enumeration of ADC central Initialize state machine states.

Enumeration Type Documentation

Enumeration of ADC central single conversion state machine states.

Enumerator
ADC_SINGLE_STATE_INIT 
ADC_SINGLE_STATE_READY 
ADC_SINGLE_CONVERSION_STATE 

Enumeration of ADC central Initialize state machine states.

Enumerator
ADC_CENTRAL_INIT 
ADC_CENTRAL_READY 

Function Documentation

void AdcIRQCallback ( ADC_T  adc,
Mcu_Adc_Event_T  event,
uint16_t *  buff 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uint8_t findindexOfScanChannel ( uint32_t  channelMask)
static

+ Here is the caller graph for this function:

static Retcode_T findScanChannelsInfo ( uint8_t *  ChannelCnt,
uint8_t *  ChannelNo,
uint32_t  ChannelMask 
)
static

+ Here is the caller graph for this function:

static bool IsChannelAlreadyActivated ( uint32_t  channelMask)
static

+ Here is the caller graph for this function:

static bool IsScanChannelActive ( Adc_Channel_T  channel)
static

+ Here is the caller graph for this function:

static void receiveProcess ( void  )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

AdcCentral_Info_T AdcCentalInfo
volatile uint16_t* bufferPointer
static
uint16_t scanDataBufffer[ADC_DMA_BUFFER_SIZE]
static

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:40 by doxygen 1.8.8