33 #define MPR121_I2C_BUS 0 34 #define MPR121_DEFAULT_I2C_ADDR 0x5a 51 uint8_t over_current_fault;
103 uint8_t *buffer,
int len);
117 uint8_t *buffer,
int len);
upm_result_t mpr121_config_an3944(mpr121_context dev)
Definition: mpr121.c:121
void mpr121_close(mpr121_context dev)
Definition: mpr121.c:61
struct _mpr121_context * mpr121_context
mpr121_context mpr121_init(int bus, uint8_t address)
Definition: mpr121.c:28
upm_result_t mpr121_read_bytes(mpr121_context dev, uint8_t reg, uint8_t *buffer, int len)
Definition: mpr121.c:89
upm_result_t mpr121_read_buttons(mpr121_context dev, uint32_t *states, int num)
Definition: mpr121.c:103
upm_result_t mpr121_write_bytes(mpr121_context dev, uint8_t reg, uint8_t *buffer, int len)
Definition: mpr121.c:66