LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
Data Structures | Functions | Variables
hsadc_18xx_43xx.c File Reference
#include "chip.h"

Go to the source code of this file.

Data Structures

struct  CRSDCEG_T
 

Functions

void Chip_HSADC_Init (LPC_HSADC_T *pHSADC)
 Initialize the High speed ADC. More...
 
void Chip_HSADC_DeInit (LPC_HSADC_T *pHSADC)
 Shutdown HSADC. More...
 
void Chip_HSADC_SetupFIFO (LPC_HSADC_T *pHSADC, uint8_t trip, bool packed)
 Sets up HSADC FIFO trip level and packing. More...
 
void Chip_HSADC_SetThrLowValue (LPC_HSADC_T *pHSADC, uint8_t thrnum, uint16_t value)
 Set HSADC Threshold low value. More...
 
void Chip_HSADC_SetThrHighValue (LPC_HSADC_T *pHSADC, uint8_t thrnum, uint16_t value)
 Set HSADC Threshold high value. More...
 
void Chip_HSADC_SetSpeed (LPC_HSADC_T *pHSADC, uint8_t channel, uint8_t speed)
 Setup speed for a input channel. More...
 
void Chip_HSADC_SetPowerSpeed (LPC_HSADC_T *pHSADC, bool comp2)
 Setup (common) HSADC power and speed settings. More...
 
void Chip_HSADC_SetACDCBias (LPC_HSADC_T *pHSADC, uint8_t channel, HSADC_DCBIAS_T dcInNeg, HSADC_DCBIAS_T dcInPos)
 Setup AC-DC coupling selection for a channel. More...
 

Variables

static const CRSDCEG_T powerSets []
 

Variable Documentation

const CRSDCEG_T powerSets[]
static
Initial value:
= {
{20000000, 0, 0x0},
{30000000, 1, 0x0},
{50000000, 2, 0x0},
{65000000, 3, 0xF},
{0xFFFFFFFF, 4, 0xE},
}

Definition at line 44 of file hsadc_18xx_43xx.c.