Description
Source
Call Graph
TWID_Read
Asynchronously reads data from a slave on the TWI bus.


Syntax / parameters
unsigned char TWID_Read (Twid *pTwid, unsigned char address, unsigned int iaddress, unsigned char isize, unsigned char *pData, unsigned int num, Async *pAsync)
|
Name |
Type |
Default |
Description |
pTwid |
Twid *
|
|
Pointer to a Twid instance.
|
address |
unsigned char
|
|
TWI slave address.
|
iaddress |
unsigned int
|
|
Optional slave internal address.
|
isize |
unsigned char
|
|
Internal address size in bytes.
|
pData |
unsigned char *
|
|
Data buffer for storing received bytes.
|
num |
unsigned int
|
|
Number of bytes to read.
|
pAsync |
Async *
|
|
Asynchronous transfer descriptor.
|
|
Return value |
unsigned char
|
|
|
Description
Asynchronously reads data from a slave on the TWI bus.
An optional callback function is triggered when the transfer is complete. Returns 0 if the transfer has been started; otherwise returns a TWI error code.
Source
The documentation for this Member was generated from the following files:
twid.c