diff options
Diffstat (limited to 'firmware/include/si570.h')
-rwxr-xr-x | firmware/include/si570.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/include/si570.h b/firmware/include/si570.h index 9bcc368..7cd816d 100755 --- a/firmware/include/si570.h +++ b/firmware/include/si570.h @@ -48,6 +48,7 @@ struct si570_ctx { //API int si570_init(struct si570_ctx *ctx, void *i2c_dev, uint8_t i2c_addr); +int si570_reinit(struct si570_ctx *ctx); int si570_read_calibration(struct si570_ctx *ctx); int si570_reset(struct si570_ctx *ctx); //mode of operation @@ -56,5 +57,7 @@ int si570_get_lock(struct si570_ctx *ctx); int si570_set_freq(struct si570_ctx *ctx, uint32_t freq, int trim); //dump all registers void si570_regdump(struct si570_ctx *ctx); +//write register(s) +int si570_reg_write(struct si570_ctx *ctx, uint8_t reg, int len, const uint8_t* data); #endif //__SI570_H__ |