NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
custom_i2c Namespace Reference

Functions

int i2c_open (const char *bus, uint8_t addr)
 
int i2c_set_retries (int handle, int retries)
 
int i2c_set_timeout (int handle, int timeout)
 
int i2c_write (int handle, uint8_t *buf, unsigned int length)
 
int i2c_read (int handle, uint8_t *buf, unsigned int length)
 
int i2c_write_read (int handle, uint8_t addr_w, uint8_t *buf_w, unsigned int len_w, uint8_t addr_r, uint8_t *buf_r, unsigned int len_r)
 
int i2c_write_ignore_nack (int handle, uint8_t addr_w, uint8_t *buf, unsigned int length)
 
int i2c_read_no_ack (int handle, uint8_t addr_r, uint8_t *buf, unsigned int length)
 
int i2c_write_byte (int handle, uint8_t val)
 
int i2c_read_byte (int handle, uint8_t *val)
 
int i2c_close (int handle)
 
int delay_ms (unsigned int msec)
 

Function Documentation

◆ delay_ms()

int custom_i2c::delay_ms ( unsigned int  msec)

◆ i2c_close()

int custom_i2c::i2c_close ( int  handle)

◆ i2c_open()

int custom_i2c::i2c_open ( const char *  bus,
uint8_t  addr 
)

◆ i2c_read()

int custom_i2c::i2c_read ( int  handle,
uint8_t *  buf,
unsigned int  length 
)

◆ i2c_read_byte()

int custom_i2c::i2c_read_byte ( int  handle,
uint8_t *  val 
)

◆ i2c_read_no_ack()

int custom_i2c::i2c_read_no_ack ( int  handle,
uint8_t  addr_r,
uint8_t *  buf,
unsigned int  length 
)

◆ i2c_set_retries()

int custom_i2c::i2c_set_retries ( int  handle,
int  retries 
)

◆ i2c_set_timeout()

int custom_i2c::i2c_set_timeout ( int  handle,
int  timeout 
)

◆ i2c_write()

int custom_i2c::i2c_write ( int  handle,
uint8_t *  buf,
unsigned int  length 
)

◆ i2c_write_byte()

int custom_i2c::i2c_write_byte ( int  handle,
uint8_t  val 
)

◆ i2c_write_ignore_nack()

int custom_i2c::i2c_write_ignore_nack ( int  handle,
uint8_t  addr_w,
uint8_t *  buf,
unsigned int  length 
)

◆ i2c_write_read()

int custom_i2c::i2c_write_read ( int  handle,
uint8_t  addr_w,
uint8_t *  buf_w,
unsigned int  len_w,
uint8_t  addr_r,
uint8_t *  buf_r,
unsigned int  len_r 
)