1
0
forked from me/IronOS

Format headers

This commit is contained in:
Ben V. Brown
2021-01-17 10:53:49 +11:00
parent f786901da0
commit bf5055edaa
173 changed files with 42831 additions and 47623 deletions

View File

@@ -10,18 +10,18 @@
#include <stdint.h>
class Si7210 {
public:
//Return true if present
static bool detect();
// Return true if present
static bool detect();
static bool init();
static int16_t read();
static bool init();
static int16_t read();
private:
static bool write_reg(const uint8_t reg,const uint8_t mask,const uint8_t val);
static bool read_reg(const uint8_t reg, uint8_t *val);
static bool start_periodic_measurement();
static bool get_field_strength(int16_t *field);
static bool set_high_range();
static bool write_reg(const uint8_t reg, const uint8_t mask, const uint8_t val);
static bool read_reg(const uint8_t reg, uint8_t *val);
static bool start_periodic_measurement();
static bool get_field_strength(int16_t *field);
static bool set_high_range();
};
#endif /* CORE_DRIVERS_SI7210_H_ */