James Reynolds / AD594x Driver
Embed: (wiki syntax)

« Back to documentation index

AD5940_Functions

AD5940_Functions
[AD5940_Library]

Modules

 Function_Helpers
 

The functions with no hardware access.


 SPI_Block
 

Functions to communicate with AD5940 registers following AD5940 SPI protocols.


 AFE_Control
 

Some functions to control the whole AFE.


 High_Speed_Loop
 

End of AFE_Control.


 Low_Power_Loop
 

High_Speed_Loop.


 DSP_Block
 

Low_Power_Loop.


 Sequencer_FIFO
 

DSP_Block.


 MISC_Block
 

end-of Sequencer_FIFO


 Calibration_Block
 

MISC_Block.


Functions

static void AD5940_D2DWriteReg (uint16_t RegAddr, uint32_t RegData)
 Function_Helpers.
void AD5940_WriteReg (uint16_t RegAddr, uint32_t RegData)
 SPI_Block.
uint32_t AD5940_ReadReg (uint16_t RegAddr)
 Read register.

Function Documentation

static void AD5940_D2DWriteReg ( uint16_t  RegAddr,
uint32_t  RegData 
) [static]

Function_Helpers.

Definition at line 850 of file ad5940.c.

uint32_t AD5940_ReadReg ( uint16_t  RegAddr )

Read register.

If sequencer generator is enabled, read current register value from data-base. Otherwise, read register value by SPI.

Parameters:
RegAddr,:The register address.
Returns:
Return register value.

Definition at line 1062 of file ad5940.c.

void AD5940_WriteReg ( uint16_t  RegAddr,
uint32_t  RegData 
)

SPI_Block.

Write register. If sequencer generator is enabled, the register write is recorded. Otherwise, the data is written to AD5940 by SPI.

Parameters:
RegAddr,:The register address.
RegData,:The register data.
Returns:
Return None.

Definition at line 1042 of file ad5940.c.