Radio Control Layer (RCL)
RCL_AdcNoise.c File Reference
#include <stdint.h>
#include <string.h>
#include <ti/devices/DeviceFamily.h>
#include <ti/drivers/RCL.h>
#include <ti/drivers/rcl/commands/adc_noise.h>
#include <ti/drivers/Power.h>
+ Include dependency graph for RCL_AdcNoise.c:

Macros

#define RCL_CLIENT_PTR   (&rclClient)
 
#define RCL_ADC_NOISE_CMD_PTR   (&cmdAdcNoiseGet)
 
#define CALLBACK_PTR   (&applicationCallback)
 
#define STATUS_SUCCESS   0
 
#define STATUS_ERROR   -1
 
#define RCL_STATUS_TO_WRAPPER_STATUS(x)   ((x) == RCL_CommandStatus_Finished ? STATUS_SUCCESS : STATUS_ERROR)
 

Typedefs

typedef void(* applicationCallback_t) (uint32_t *buffer, uint32_t numWords, int_fast16_t status)
 

Functions

int_fast16_t RCL_AdcNoise_get_samples_blocking (uint32_t *buffer, uint32_t numWords)
 
int_fast16_t RCL_AdcNoise_get_samples_callback (uint32_t *buffer, uint32_t numWords, applicationCallback_t callback)
 
static void adcNoiseCallback (RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEvents)
 
 __attribute__ ((weak))
 

Variables

const LRF_Config LRF_configAdcNoise
 
static RCL_Client rclClient
 
static RCL_CmdAdcNoiseGet cmdAdcNoiseGet
 
static applicationCallback_t applicationCallback
 

Macro Definition Documentation

§ RCL_CLIENT_PTR

#define RCL_CLIENT_PTR   (&rclClient)

Referenced by __attribute__().

§ RCL_ADC_NOISE_CMD_PTR

#define RCL_ADC_NOISE_CMD_PTR   (&cmdAdcNoiseGet)

Referenced by __attribute__().

§ CALLBACK_PTR

#define CALLBACK_PTR   (&applicationCallback)

Referenced by __attribute__(), and adcNoiseCallback().

§ STATUS_SUCCESS

#define STATUS_SUCCESS   0

§ STATUS_ERROR

#define STATUS_ERROR   -1

§ RCL_STATUS_TO_WRAPPER_STATUS

#define RCL_STATUS_TO_WRAPPER_STATUS (   x)    ((x) == RCL_CommandStatus_Finished ? STATUS_SUCCESS : STATUS_ERROR)

Referenced by __attribute__(), and adcNoiseCallback().

Typedef Documentation

§ applicationCallback_t

typedef void(* applicationCallback_t) (uint32_t *buffer, uint32_t numWords, int_fast16_t status)

Function Documentation

§ RCL_AdcNoise_get_samples_blocking()

int_fast16_t RCL_AdcNoise_get_samples_blocking ( uint32_t *  buffer,
uint32_t  numWords 
)

§ RCL_AdcNoise_get_samples_callback()

int_fast16_t RCL_AdcNoise_get_samples_callback ( uint32_t *  buffer,
uint32_t  numWords,
applicationCallback_t  callback 
)

Referenced by __attribute__().

§ adcNoiseCallback()

static void adcNoiseCallback ( RCL_Command *  cmd,
LRF_Events  lrfEvents,
RCL_Events  rclEvents 
)
static

§ __attribute__()

Variable Documentation

§ LRF_configAdcNoise

const LRF_Config LRF_configAdcNoise

§ rclClient

RCL_Client rclClient
static

§ cmdAdcNoiseGet

RCL_CmdAdcNoiseGet cmdAdcNoiseGet
static

§ applicationCallback

applicationCallback_t applicationCallback
static