X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fdrivers%2Fao_max6691.h;h=ab8207f9c7cabc0cd868aa3b3f3a0cc8adebc204;hp=0c422d9e7e37daaed999931c856b6725b3c60808;hb=5d3436ed8551537287dc6cf418f93b0989e1aee8;hpb=49ce3e9a2eb4e1918773b80c355d720a3dadc7e0 diff --git a/src/drivers/ao_max6691.h b/src/drivers/ao_max6691.h index 0c422d9e..ab8207f9 100644 --- a/src/drivers/ao_max6691.h +++ b/src/drivers/ao_max6691.h @@ -15,6 +15,18 @@ #ifndef _AO_MAX6691_H_ #define _AO_MAX6691_H_ +#define AO_MAX6691_CHANNELS 4 + +struct ao_max6691 { + struct { + uint16_t t_high; + uint16_t t_low; + } sensor[AO_MAX6691_CHANNELS]; +}; + +void +ao_max6691_sample(struct ao_max6691 *ao_max6691); + void ao_max6691_init(void);