XBee Firmware Library  1.6.0
Functions
mpr121.h File Reference

Functions

void mpr121_default_config (void)
 Init mpr121. More...
 
ssize_t mpr121_read (uint8_t regaddr)
 Reads a byte from selected address. More...
 
ssize_t mpr121_write (uint8_t regaddr, uint8_t data)
 Write a byte in the selected address. More...
 

Function Documentation

ssize_t mpr121_read ( uint8_t  regaddr)

Reads a byte from selected address.

Parameters
regaddr- direction for read a byte
Returns
Returns the error code on error or the value read from the selected register
ssize_t mpr121_write ( uint8_t  regaddr,
uint8_t  data 
)

Write a byte in the selected address.

Parameters
regaddr- address to write
data- data to write on selected address
Returns
nothing