Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sc18i600.h
Go to the documentation of this file.
1 #ifndef SC18IS600_H
2 #define SC18IS600_H
3 
4 #include "std.h"
5 
6 /* Register definitions */
7 #define Sc18Is600_IOConfig 0x00
8 #define Sc18Is600_IOState 0x01
9 #define Sc18Is600_I2CClock 0x02
10 #define Sc18Is600_I2CTO 0x03
11 #define Sc18Is600_I2CStat 0x04
12 #define Sc18Is600_I2CAdr 0x05
13 
14 
22 };
23 
30 };
31 #define SC18IS600_BUF_LEN 96
32 
33 struct Sc18Is600 {
40 };
41 
42 extern struct Sc18Is600 sc18is600;
43 
44 extern void sc18is600_init(void);
45 extern void sc18is600_transmit(uint8_t addr, uint8_t len);
46 extern void sc18is600_receive(uint8_t addr, uint8_t len);
47 extern void sc18is600_tranceive(uint8_t addr, uint8_t len_tx, uint8_t len_rx);
48 extern void sc18is600_write_to_register(uint8_t addr, uint8_t value);
49 extern void sc18is600_read_from_register(uint8_t addr);
50 
52 extern void sc18is600_arch_init(void);
53 
54 #endif /* SC18IS600_H */
struct Sc18Is600 sc18is600
Definition: sc18i600.c:3
uint8_t i2c_status
Definition: sc18i600.h:39
void sc18is600_tranceive(uint8_t addr, uint8_t len_tx, uint8_t len_rx)
#define SC18IS600_BUF_LEN
Definition: sc18i600.h:31
void sc18is600_write_to_register(uint8_t addr, uint8_t value)
void sc18is600_arch_init(void)
void sc18is600_transmit(uint8_t addr, uint8_t len)
void sc18is600_init(void)
Definition: sc18i600.c:5
void sc18is600_receive(uint8_t addr, uint8_t len)
unsigned char uint8_t
Definition: types.h:14
Sc18Is600Status
Definition: sc18i600.h:15
uint8_t rx_len
Definition: sc18i600.h:38
enum Sc18Is600Transaction transaction
Definition: sc18i600.h:35
uint8_t priv_rx_buf[SC18IS600_BUF_LEN]
Definition: sc18i600.h:37
Sc18Is600Transaction
Definition: sc18i600.h:24
uint8_t priv_tx_buf[SC18IS600_BUF_LEN]
Definition: sc18i600.h:36
void sc18is600_read_from_register(uint8_t addr)
enum Sc18Is600Status status
Definition: sc18i600.h:34