James Reynolds / AD594x Driver
Embed: (wiki syntax)

« Back to documentation index

Library_Interface

Library_Interface
[AD5940_Library]

Exported_Functions. More...

Functions

void AD5940_ReadWriteNBytes (unsigned char *pSendBuffer, unsigned char *pRecvBuff, unsigned long length)
 Using SPI to transmit N bytes and return the received bytes.

Detailed Description

Exported_Functions.

The functions user should provide for specific MCU platform


Function Documentation

void AD5940_ReadWriteNBytes ( unsigned char *  pSendBuffer,
unsigned char *  pRecvBuff,
unsigned long  length 
)

Using SPI to transmit N bytes and return the received bytes.

This function targets to provide a more efficient way to transmit/receive data.

Parameters:
pSendBuffer:{0 - 0xFFFFFFFF}

  • Pointer to the data to be sent.
pRecvBuff:{0 - 0xFFFFFFFF}

  • Pointer to the buffer used to store received data.
length:{0 - 0xFFFFFFFF}

  • Data length in SendBuffer.
Returns:
None.

Definition at line 45 of file ad5940mbedport.cpp.