Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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 */
sc18is600_receive
void sc18is600_receive(uint8_t addr, uint8_t len)
Definition: sc18is600_arch.c:164
Sc18Is600WriteRegister
@ Sc18Is600WriteRegister
Definition: sc18i600.h:29
SC18IS600_BUF_LEN
#define SC18IS600_BUF_LEN
Definition: sc18i600.h:31
Sc18Is600WaitingForI2C
@ Sc18Is600WaitingForI2C
Definition: sc18i600.h:18
Sc18Is600Transcieve
@ Sc18Is600Transcieve
Definition: sc18i600.h:27
Sc18Is600Receive
@ Sc18Is600Receive
Definition: sc18i600.h:26
sc18is600_write_to_register
void sc18is600_write_to_register(uint8_t addr, uint8_t value)
Definition: sc18is600_arch.c:183
Sc18Is600Transmit
@ Sc18Is600Transmit
Definition: sc18i600.h:25
Sc18Is600ReadRegister
@ Sc18Is600ReadRegister
Definition: sc18i600.h:28
sc18is600_transmit
void sc18is600_transmit(uint8_t addr, uint8_t len)
Definition: sc18is600_arch.c:151
Sc18Is600::priv_rx_buf
uint8_t priv_rx_buf[SC18IS600_BUF_LEN]
Definition: sc18i600.h:37
std.h
sc18is600_init
void sc18is600_init(void)
Definition: sc18i600.c:5
Sc18Is600::i2c_status
uint8_t i2c_status
Definition: sc18i600.h:39
Sc18Is600::status
enum Sc18Is600Status status
Definition: sc18i600.h:34
Sc18Is600ReadingBuffer
@ Sc18Is600ReadingBuffer
Definition: sc18i600.h:20
Sc18Is600TransactionComplete
@ Sc18Is600TransactionComplete
Definition: sc18i600.h:21
Sc18Is600::rx_len
uint8_t rx_len
Definition: sc18i600.h:38
uint8_t
unsigned char uint8_t
Definition: types.h:14
Sc18Is600SendingRequest
@ Sc18Is600SendingRequest
Definition: sc18i600.h:17
Sc18Is600ReadingI2CStat
@ Sc18Is600ReadingI2CStat
Definition: sc18i600.h:19
Sc18Is600Transaction
Sc18Is600Transaction
Definition: sc18i600.h:24
Sc18Is600Status
Sc18Is600Status
Definition: sc18i600.h:15
sc18is600_arch.h
sc18is600
struct Sc18Is600 sc18is600
Definition: sc18i600.c:3
Sc18Is600
Definition: sc18i600.h:33
sc18is600_arch_init
void sc18is600_arch_init(void)
Definition: sc18is600_arch.c:25
Sc18Is600::transaction
enum Sc18Is600Transaction transaction
Definition: sc18i600.h:35
Sc18Is600::priv_tx_buf
uint8_t priv_tx_buf[SC18IS600_BUF_LEN]
Definition: sc18i600.h:36
sc18is600_read_from_register
void sc18is600_read_from_register(uint8_t addr)
Definition: sc18is600_arch.c:195
Sc18Is600Idle
@ Sc18Is600Idle
Definition: sc18i600.h:16
sc18is600_tranceive
void sc18is600_tranceive(uint8_t addr, uint8_t len_tx, uint8_t len_rx)
Definition: sc18is600_arch.c:169