2013-10-23 15:39:20 -04:00
|
|
|
void mma_init(void);
|
2013-10-19 13:13:48 -04:00
|
|
|
void mma_restart(uint8_t addr, int write);
|
|
|
|
void mma_start(uint8_t addr, int write);
|
|
|
|
void mma_send_byte(uint8_t data);
|
2013-10-23 15:39:20 -04:00
|
|
|
uint8_t mma_read_ack(void);
|
|
|
|
uint8_t mma_read_nack(void);
|
|
|
|
void mma_stop(void);
|
2014-01-02 16:30:26 -05:00
|
|
|
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(pyb_mma_read_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(pyb_mma_read_all_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(pyb_mma_write_mode_obj);
|