Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
The basic SPI protocols. More...
Functions | |
| static unsigned char | AD5940_ReadWrite8B (unsigned char data) |
| Using SPI to transmit one byte and return the received byte. | |
| static uint16_t | AD5940_ReadWrite16B (uint16_t data) |
| Using SPI to transmit two bytes and return the received bytes. | |
| static uint32_t | AD5940_ReadWrite32B (uint32_t data) |
| Using SPI to transmit four bytes and return the received bytes. | |
| static void | AD5940_SPIWriteReg (uint16_t RegAddr, uint32_t RegData) |
| Write register through SPI. | |
| static uint32_t | AD5940_SPIReadReg (uint16_t RegAddr) |
| Read register through SPI. | |
| void | AD5940_FIFORd (uint32_t *pBuffer, uint32_t uiReadCount) |
| Read specific number of data from FIFO with optimized SPI access. | |
Detailed Description
The basic SPI protocols.
All functions are basic on AD5940_ReadWriteNBytes which provided by user.
#SPI basic protocol All SPI protocol starts with one-byte command word. Following are data(16B or 32B) There are four SPI commands available SPI_Block_Const.
Function Documentation
| void AD5940_FIFORd | ( | uint32_t * | pBuffer, |
| uint32_t | uiReadCount | ||
| ) |
| static uint16_t AD5940_ReadWrite16B | ( | uint16_t | data ) | [static] |
| static uint32_t AD5940_ReadWrite32B | ( | uint32_t | data ) | [static] |
| static unsigned char AD5940_ReadWrite8B | ( | unsigned char | data ) | [static] |
| static uint32_t AD5940_SPIReadReg | ( | uint16_t | RegAddr ) | [static] |
Generated on Tue Jul 12 2022 21:32:08 by
1.7.2