2013-10-23 20:39:20 +01:00
|
|
|
void mma_init(void);
|
2013-10-19 18:13:48 +01: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 20:39:20 +01:00
|
|
|
uint8_t mma_read_ack(void);
|
|
|
|
uint8_t mma_read_nack(void);
|
|
|
|
void mma_stop(void);
|
2014-01-02 21:30:26 +00: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);
|