HELP need urgently.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HELP need urgently.

192 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jose_peeterson on Wed Sep 26 12:08:44 MST 2012
hi,
can you please tell me how to declare and use typedef struct
/*------------- Analog-to-Digital Converter (ADC) ----------------------------*/
typedef struct
{
  __IO uint32_t ADCR;
  __IO uint32_t ADGDR;
       uint32_t RESERVED0;
  __IO uint32_t ADINTEN;
  __I  uint32_t ADDR0;
  __I  uint32_t ADDR1;
  __I  uint32_t ADDR2;
  __I  uint32_t ADDR3;
  __I  uint32_t ADDR4;
  __I  uint32_t ADDR5;
  __I  uint32_t ADDR6;
  __I  uint32_t ADDR7;
  __I  uint32_t ADSTAT;
  __IO uint32_t ADTRM;
} LPC_ADC_TypeDef;

in this fucntion
ADC_DeInit(LPC_ADC_TypeDef *ADCx);
0 Kudos
2 Replies

185 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jose_peeterson on Wed Sep 26 15:29:56 MST 2012
thanks artjom,

my query was cleared already.
0 Kudos

185 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ArtjomGromak on Wed Sep 26 13:29:51 MST 2012

Quote: jose_peeterson
hi,
can you please tell me how to declare and use typedef struct


What you want from ADC?
You not need declare this typedef. You need write in your source code
#include "lpc11xx.h"

.
And can work with ADC.

Quote: jose_peeterson
hi,
in this fucntion
ADC_DeInit(LPC_ADC_TypeDef *ADCx);
[/CODE]


Where you find this function? It is library function from NXP?
0 Kudos