Paparazzi UAS  v7.0_unstable
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 */
enum Sc18Is600Transaction transaction
Definition: sc18i600.h:35
void sc18is600_read_from_register(uint8_t addr)
void sc18is600_arch_init(void)
enum Sc18Is600Status status
Definition: sc18i600.h:34
Sc18Is600Transaction
Definition: sc18i600.h:24
@ Sc18Is600Transmit
Definition: sc18i600.h:25
@ Sc18Is600Receive
Definition: sc18i600.h:26
@ Sc18Is600Transcieve
Definition: sc18i600.h:27
@ Sc18Is600ReadRegister
Definition: sc18i600.h:28
@ Sc18Is600WriteRegister
Definition: sc18i600.h:29
#define SC18IS600_BUF_LEN
Definition: sc18i600.h:31
void sc18is600_write_to_register(uint8_t addr, uint8_t value)
void sc18is600_receive(uint8_t addr, uint8_t len)
uint8_t priv_tx_buf[SC18IS600_BUF_LEN]
Definition: sc18i600.h:36
uint8_t i2c_status
Definition: sc18i600.h:39
void sc18is600_tranceive(uint8_t addr, uint8_t len_tx, uint8_t len_rx)
uint8_t priv_rx_buf[SC18IS600_BUF_LEN]
Definition: sc18i600.h:37
void sc18is600_init(void)
Definition: sc18i600.c:5
void sc18is600_transmit(uint8_t addr, uint8_t len)
Sc18Is600Status
Definition: sc18i600.h:15
@ Sc18Is600ReadingBuffer
Definition: sc18i600.h:20
@ Sc18Is600ReadingI2CStat
Definition: sc18i600.h:19
@ Sc18Is600TransactionComplete
Definition: sc18i600.h:21
@ Sc18Is600Idle
Definition: sc18i600.h:16
@ Sc18Is600WaitingForI2C
Definition: sc18i600.h:18
@ Sc18Is600SendingRequest
Definition: sc18i600.h:17
struct Sc18Is600 sc18is600
Definition: sc18i600.c:3
uint8_t rx_len
Definition: sc18i600.h:38
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98