Motion_EC_Stm32_archived/Middlewares/Coulomb/coulomb.h

25 lines
480 B
C

/*
* coulomb.h
*
* Created on: Apr 27, 2020
* Author: oarap
*/
#ifndef _COULOMB_H_
#define _COULOMB_H_
#include "stdbool.h"
#define COULOMB_ADDR 0x64 //device address
#define COULOMB_WRITE_CMD 0x00 //coulomb write command
#define COULOMB_READ_CMD 0x01 //coulomb read command
bool is_coulomb_ready();
void coulomb_write_reg(uint8_t reg_addr,uint8_t *data);
void coulomb_read_reg(uint8_t reg_addr,uint8_t *data);
bool coulomb_read_alcc()
#endif /* _COULOMB_H_ */