summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/dev/tps61052.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/dev/tps61052.h')
-rw-r--r--fw/fe310/eos/dev/tps61052.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/fw/fe310/eos/dev/tps61052.h b/fw/fe310/eos/dev/tps61052.h
new file mode 100644
index 0000000..2711d2b
--- /dev/null
+++ b/fw/fe310/eos/dev/tps61052.h
@@ -0,0 +1,34 @@
+#include <stdint.h>
+
+/* register b00 */
+int eos_tps61052_get_tc(uint8_t *tc);
+int eos_tps61052_set_tc(uint8_t tc);
+int eos_tps61052_get_dim(uint8_t *dim);
+int eos_tps61052_set_dim(uint8_t dim);
+int eos_tps61052_get_ov(uint8_t *ov);
+int eos_tps61052_set_ov(uint8_t ov);
+int eos_tps61052_get_mode0(uint8_t *mode);
+int eos_tps61052_set_mode0(uint8_t mode);
+
+/* register b01 */
+int eos_tps61052_get_fc(uint8_t *fc);
+int eos_tps61052_set_fc(uint8_t fc);
+int eos_tps61052_get_sft(uint8_t *sft);
+int eos_tps61052_set_sft(uint8_t sft);
+int eos_tps61052_get_stt(uint8_t *stt);
+int eos_tps61052_set_stt(uint8_t stt);
+int eos_tps61052_get_to(uint8_t *to);
+int eos_tps61052_get_mode1(uint8_t *mode);
+int eos_tps61052_set_mode1(uint8_t mode);
+
+/* register b10 */
+int eos_tps61052_get_adc(uint8_t *adc);
+int eos_tps61052_get_lf(uint8_t *lf);
+int eos_tps61052_get_ot(uint8_t *ot);
+int eos_tps61052_set_ilim(uint8_t ilim);
+
+/* register b11 */
+int eos_tps61052_get_stim(uint8_t *stim);
+int eos_tps61052_set_stim(uint8_t stim);
+int eos_tps61052_get_dctim(uint8_t *dctim);
+int eos_tps61052_set_dctim(uint8_t dctim);