Hardware Abstraction Layer for FreeRTOS
tps65381.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Author: Andreas Werner <kernel@andy89.org>
4  * Date: 2016
5  */
6 #ifndef TPS65381_h_
7 #define TPS65381_h_
8 #include <FreeRTOS.h>
9 #include <stdint.h>
10 #include <spi.h>
11 #include <adc.h>
26 struct tps65381;
30 enum tps_diag {
63 };
70 struct tps65381 *tps_init(struct spi_slave *slave, TickType_t waittime);
76 int32_t tps_deinit(struct tps65381 *tps);
85 int32_t tps_mux(struct tps65381 *tps, enum tps_diag diag, TickType_t waittime);
95 float tps_diag(struct tps65381 *tps, enum tps_diag diag, struct adc *adc, TickType_t waittime);
97 #endif
TPS_VDD5
@ TPS_VDD5
Definition: tps65381.h:34
tps_init
struct tps65381 * tps_init(struct spi_slave *slave, TickType_t waittime)
spi.h
TPS_VMON_BG
@ TPS_VMON_BG
Definition: tps65381.h:62
tps_deinit
int32_t tps_deinit(struct tps65381 *tps)
TPS_VBAT_SAFING
@ TPS_VBAT_SAFING
Definition: tps65381.h:50
adc.h
TPS_VDD6
@ TPS_VDD6
Definition: tps65381.h:38
TPS_MAIN_BG
@ TPS_MAIN_BG
Definition: tps65381.h:58
tps_mux
int32_t tps_mux(struct tps65381 *tps, enum tps_diag diag, TickType_t waittime)
TPS_VSOUT1
@ TPS_VSOUT1
Definition: tps65381.h:46
TPS_VBAT
@ TPS_VBAT
Definition: tps65381.h:54
TPS_VCP
@ TPS_VCP
Definition: tps65381.h:42
tps_diag
tps_diag
Definition: tps65381.h:30