James Reynolds / AD594x Driver
Embed: (wiki syntax)

« Back to documentation index

GPIO_Block_Functions

GPIO_Block_Functions
[MISC_Block_Functions]

Interrupt_Controller_Functions. More...

Functions

void AD5940_AGPIOCfg (AGPIOCfg_Type *pAgpioCfg)
 Initialize AFE GPIO.
void AD5940_AGPIOFuncCfg (uint32_t uiCfgSet)
 Configure the function of GP0 to GP7.
void AD5940_AGPIOOen (uint32_t uiPinSet)
 Enable GPIO output mode on selected pins.
void AD5940_AGPIOIen (uint32_t uiPinSet)
 Enable input on selected pins while disable others.
uint32_t AD5940_AGPIOIn (void)
 Read the GPIO status.
void AD5940_AGPIOPen (uint32_t uiPinSet)
 Enable pull-up or down on selected pins while disable other pins.
void AD5940_AGPIOSet (uint32_t uiPinSet)
 Put selected GPIOs to high level.
void AD5940_AGPIOClr (uint32_t uiPinSet)
 Put selected GPIOs to low level.
void AD5940_AGPIOToggle (uint32_t uiPinSet)
 Toggle selected GPIOs.

Detailed Description

Interrupt_Controller_Functions.


Function Documentation

void AD5940_AGPIOCfg ( AGPIOCfg_Type pAgpioCfg )

Initialize AFE GPIO.

Parameters:
pAgpioCfg,:Pointer to configuration structure
Returns:
return none.

Definition at line 2768 of file ad5940.c.

void AD5940_AGPIOClr ( uint32_t  uiPinSet )

Put selected GPIOs to low level.

Parameters:
uiPinSet,:Select from: {AGPIO_Pin0|AGPIO_Pin1|AGPIO_Pin2|AGPIO_Pin3|AGPIO_Pin4|AGPIO_Pin5|AGPIO_Pin6|AGPIO_Pin7}
Returns:
return none

Definition at line 2848 of file ad5940.c.

void AD5940_AGPIOFuncCfg ( uint32_t  uiCfgSet )

Configure the function of GP0 to GP7.

Parameters:
uiCfgSet:{GP0_INT,GP0_TRIG,GP0_SYNC,GP0_GPIO| GP1_GPIO,GP1_TRIG,GP1_SYNC,GP1_SLEEP| GP2_PORB,GP2_TRIG,GP2_SYNC,GP2_EXTCLK| GP3_GPIO,GP3_TRIG,GP3_SYNC,GP3_INT0|\ GP4_GPIO,GP4_TRIG,GP4_SYNC,GP4_INT1| GP5_GPIO,GP5_TRIG,GP5_SYNC,GP5_EXTCLK| GP6_GPIO,GP6_TRIG,GP6_SYNC,GP6_INT0| GP7_GPIO,GP7_TRIG,GP7_SYNC,GP7_INT}
Returns:
return none.

Definition at line 2789 of file ad5940.c.

void AD5940_AGPIOIen ( uint32_t  uiPinSet )

Enable input on selected pins while disable others.

Parameters:
uiPinSet,:Select from {AGPIO_Pin0|AGPIO_Pin1|AGPIO_Pin2|AGPIO_Pin3|AGPIO_Pin4|AGPIO_Pin5|AGPIO_Pin6|AGPIO_Pin7}
Returns:
return none

Definition at line 2809 of file ad5940.c.

uint32_t AD5940_AGPIOIn ( void   )

Read the GPIO status.

Returns:
return GP0IN register which is the GPIO status.

Definition at line 2818 of file ad5940.c.

void AD5940_AGPIOOen ( uint32_t  uiPinSet )

Enable GPIO output mode on selected pins.

Disable output on non-selected pins.

Parameters:
uiPinSet:Select from {AGPIO_Pin0|AGPIO_Pin1|AGPIO_Pin2|AGPIO_Pin3|AGPIO_Pin4|AGPIO_Pin5|AGPIO_Pin6|AGPIO_Pin7}
Returns:
return none

Definition at line 2799 of file ad5940.c.

void AD5940_AGPIOPen ( uint32_t  uiPinSet )

Enable pull-up or down on selected pins while disable other pins.

Parameters:
uiPinSet,:Select from: {AGPIO_Pin0|AGPIO_Pin1|AGPIO_Pin2|AGPIO_Pin3|AGPIO_Pin4|AGPIO_Pin5|AGPIO_Pin6|AGPIO_Pin7}
Returns:
return none

Definition at line 2828 of file ad5940.c.

void AD5940_AGPIOSet ( uint32_t  uiPinSet )

Put selected GPIOs to high level.

Parameters:
uiPinSet,:Select from: {AGPIO_Pin0|AGPIO_Pin1|AGPIO_Pin2|AGPIO_Pin3|AGPIO_Pin4|AGPIO_Pin5|AGPIO_Pin6|AGPIO_Pin7}
Returns:
return none

Definition at line 2838 of file ad5940.c.

void AD5940_AGPIOToggle ( uint32_t  uiPinSet )

Toggle selected GPIOs.

Parameters:
uiPinSet,:Select from: {AGPIO_Pin0|AGPIO_Pin1|AGPIO_Pin2|AGPIO_Pin3|AGPIO_Pin4|AGPIO_Pin5|AGPIO_Pin6|AGPIO_Pin7}
Returns:
return none

Definition at line 2858 of file ad5940.c.