blob: 5a76504ac66bdb1e3eb3bac218990d064bda862e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//---------------------------------------------------------------------------
#ifndef i2c_driverH
#define i2c_driverH
// Sends data bytes to xc4000 via I2C starting with
// bytes_to_send[0] and ending with bytes_to_send[nb_bytes_to_send-1]
int xc_send_i2c_data(unsigned char *bytes_to_send, int nb_bytes_to_send);
// Reads data bytes from xc4000 via I2C starting with
// bytes_received[0] and ending with bytes_received[nb_bytes_to_receive-1]
int xc_read_i2c_data(unsigned char *bytes_received, int nb_bytes_to_receive);
// Does hardware reset
int xc_reset(void);
// Waits for wait_ms milliseconds
void xc_wait(int wait_ms);
//---------------------------------------------------------------------------
#endif
|