Flipper Developer Docs
Loading...
Searching...
No Matches
bq25896.h
1
#pragma once
2
3
#include "bq25896_reg.h"
4
5
#include <stdbool.h>
6
#include <stdint.h>
7
#include <
furi_hal_i2c.h
>
8
10
bool
bq25896_init(
FuriHalI2cBusHandle
* handle);
11
13
void
bq25896_set_boost_lim(
FuriHalI2cBusHandle
* handle, BoostLim boost_lim);
14
16
void
bq25896_poweroff(
FuriHalI2cBusHandle
* handle);
17
19
ChrgStat bq25896_get_charge_status(
FuriHalI2cBusHandle
* handle);
20
22
bool
bq25896_is_charging(
FuriHalI2cBusHandle
* handle);
23
25
bool
bq25896_is_charging_done(
FuriHalI2cBusHandle
* handle);
26
28
void
bq25896_enable_charging(
FuriHalI2cBusHandle
* handle);
29
31
void
bq25896_disable_charging(
FuriHalI2cBusHandle
* handle);
32
34
void
bq25896_enable_otg(
FuriHalI2cBusHandle
* handle);
35
37
void
bq25896_disable_otg(
FuriHalI2cBusHandle
* handle);
38
40
bool
bq25896_is_otg_enabled(
FuriHalI2cBusHandle
* handle);
41
43
uint16_t bq25896_get_vreg_voltage(
FuriHalI2cBusHandle
* handle);
44
49
void
bq25896_set_vreg_voltage(
FuriHalI2cBusHandle
* handle, uint16_t vreg_voltage);
50
52
bool
bq25896_check_otg_fault(
FuriHalI2cBusHandle
* handle);
53
55
uint16_t bq25896_get_vbus_voltage(
FuriHalI2cBusHandle
* handle);
56
58
uint16_t bq25896_get_vsys_voltage(
FuriHalI2cBusHandle
* handle);
59
61
uint16_t bq25896_get_vbat_voltage(
FuriHalI2cBusHandle
* handle);
62
64
uint16_t bq25896_get_vbat_current(
FuriHalI2cBusHandle
* handle);
65
67
uint32_t bq25896_get_ntc_mpct(
FuriHalI2cBusHandle
* handle);
furi_hal_i2c.h
I2C HAL API.
FuriHalI2cBusHandle
FuriHal i2c handle.
Definition
furi_hal_i2c_types.h:44
lib
drivers
bq25896.h
Generated by
1.12.0