1 #include "poppy-com/inc/i2c_master.h"
9 unsigned char set_extern_id(
unsigned char addr,
unsigned char newid) {
10 if (i2cAddr(addr,
TX)) {
14 if (i2cWrite(WRITE_ID)) {
18 if (i2cWrite(newid)) {
22 i2cWrite(crc(&newid, 1));
27 unsigned char get_extern_module_type(
unsigned char addr,
28 unsigned char *module_type) {
29 if (i2cAddr(addr,
TX)) {
33 if (i2cWrite(GET_MODULE_TYPE)) {
37 if (i2cAddr(addr,
RX)) {
41 if (i2cRead(FALSE, module_type)) {