LTPS C++ API
|
I2C SMBUS I/O class. More...
#include <Ci2c_smbus.h>
Public Member Functions | |||
I/O methods | |||
NOTE: it may take too long time to read/write i2c device especially if there are alot of legs/registers so make this functions non-blockable
| |||
int | R1b (uint16_t _addr, uint8_t _reg, uint8_t &_b) | ||
int | W1b (uint16_t _addr, uint8_t _reg, uint8_t _b) | ||
int | R2b (uint16_t _addr, uint8_t _reg, uint16_t &_b) | ||
int | W2b (uint16_t _addr, uint8_t _reg, uint16_t _b) | ||
int | Rbb (uint16_t _addr, uint8_t _reg, uint8_t *_b, uint8_t _blen) | ||
int | Wbb (uint16_t _addr, uint8_t _reg, uint8_t *_b, uint8_t _blen) | ||
int | Rqb (uint16_t _addr, uint8_t _reg, uint8_t *_b, uint8_t _blen) | ||
int | Wqb (uint16_t _addr, uint8_t _reg, uint8_t *_b, uint8_t _blen) | ||
![]() | |||
int | set_slave (uint16_t _addr) | ||
Set slave device to work with. No need to call it obviously. Call it only for test if device exists. BUT nowtime result is not guaranteed if it can return an error "no such device" due to SMBUS i2c driver realization. More... | |||
int | set_bus (uint16_t _busn) | ||
int | set_bus (const char *_buss, i2cmap_t *_map=NULL) | ||
int | cur_bus (void) | ||
Additional Inherited Members | |
![]() | |
static int | find_bus (const char *_sock) |
I2C SMBUS I/O class.
I2C SMBUS-specific I/O functions
Allow to interact with almost all I2C devices