Revision 1457
i2c.h | ||
---|---|---|
36 | 36 |
#ifndef _I2C_H_ |
37 | 37 |
#define _I2C_H_ |
38 | 38 |
|
39 |
#include <stddef.h> |
|
40 |
|
|
41 | 39 |
/** @brief Address of slave receive handler function **/ |
42 | 40 |
typedef void (*fun_srecv_t)(char); |
43 | 41 |
|
... | ... | |
48 | 46 |
typedef char (*fun_send_t)(void); |
49 | 47 |
|
50 | 48 |
int i2c_init(char addr, fun_mrecv_t master_recv, fun_srecv_t slave_recv, fun_send_t slave_send); |
51 |
int i2c_send(char dest, char* data, size_t bytes);
|
|
49 |
int i2c_send(char dest, char* data, unsigned int bytes);
|
|
52 | 50 |
int i2c_request(char dest); |
53 | 51 |
|
54 | 52 |
void i2c_packet_rec (char i2c_byte); |
Also available in: Unified diff