Motion_EC_Stm32_archived/Middlewares/Coulomb/coulomb.h

25 lines
480 B
C
Raw Normal View History

2020-04-27 18:19:02 +08:00
/*
* coulomb.h
*
* Created on: Apr 27, 2020
* Author: oarap
*/
#ifndef _COULOMB_H_
#define _COULOMB_H_
2020-04-27 18:28:35 +08:00
#include "stdbool.h"
2020-04-27 18:19:02 +08:00
#define COULOMB_ADDR 0x64 //device address
#define COULOMB_WRITE_CMD 0x00 //coulomb write command
#define COULOMB_READ_CMD 0x01 //coulomb read command
2020-04-27 18:28:35 +08:00
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()
2020-04-27 18:19:02 +08:00
#endif /* _COULOMB_H_ */