|
SemiDrive SSDK Appication Program Interface PTG3.0
|
#include <sdrv_i2c.h>
Data Fields | |
| uint16_t | slave_addr |
| uint8_t * | buf |
| uint16_t | len |
| int | read_flag |
| bool | need_stop |
| uint16_t | cur_len |
| status_t | trans_stat |
| uint32_t | trans_errcode |
| sdrv_i2c_cb_t | cb |
| void * | cb_param |
@i2c controller master mode relative resource
| uint8_t* buf |
point to data write or read customer buf
interrupt callback function
| void* cb_param |
callback customer parameter
| uint16_t cur_len |
length of data already write or read success
| uint16_t len |
buf length from customer
| bool need_stop |
true: end with stop signal
| int read_flag |
1:read ; 0:write
| uint16_t slave_addr |
slave device address,7bit without LSB rw bit
| uint32_t trans_errcode |
error code flag
| status_t trans_stat |
current transfer stat flag