mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 22:32:29 +03:00
610f4f5d73
* targets/api-hal: rework documentation in doxygen style * core/api-hal: rework documentation in doxygen style * core/furi: rework documentation in doxygen style * drivers: rework documentation in doxygen style Co-authored-by: あく <alleteam@gmail.com>
35 lines
663 B
C
35 lines
663 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
/** Initialize Driver */
|
|
void bq25896_init();
|
|
|
|
/** Send device into shipping mode */
|
|
void bq25896_poweroff();
|
|
|
|
/** Is currently charging */
|
|
bool bq25896_is_charging();
|
|
|
|
/** Enable otg */
|
|
void bq25896_enable_otg();
|
|
|
|
/** Disable otg */
|
|
void bq25896_disable_otg();
|
|
|
|
/** Get VBUS Voltage in mV */
|
|
uint16_t bq25896_get_vbus_voltage();
|
|
|
|
/** Get VSYS Voltage in mV */
|
|
uint16_t bq25896_get_vsys_voltage();
|
|
|
|
/** Get VBAT Voltage in mV */
|
|
uint16_t bq25896_get_vbat_voltage();
|
|
|
|
/** Get VBAT current in mA */
|
|
uint16_t bq25896_get_vbat_current();
|
|
|
|
/** Get NTC voltage in mpct of REGN */
|
|
uint32_t bq25896_get_ntc_mpct();
|