[FL-84] iButton app, dallas emulate + cyfral read, cyfral emulate (#253)
* maxim crc function * one wire template device and ds1990 classes * 3 fields for addr * cyfral emulator lib * add cyfral read mode, refract rendering and events * add ADC1_IN14, add adc interrupt * cyfral read mode * rename and move api-hal includes folder * build onewire libs only if we build app * start in mode 0
This commit is contained in:
22
firmware/targets/api-hal-include/api-hal-power.h
Normal file
22
firmware/targets/api-hal-include/api-hal-power.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* Initialize drivers */
|
||||
void api_hal_power_init();
|
||||
|
||||
/* Get predicted remaining battery capacity in percents */
|
||||
uint8_t api_hal_power_get_pct();
|
||||
|
||||
/* Get charging status */
|
||||
bool api_hal_power_is_charging();
|
||||
|
||||
/* Poweroff system */
|
||||
void api_hal_power_off();
|
||||
|
||||
/* OTG enable */
|
||||
void api_hal_power_enable_otg();
|
||||
|
||||
/* OTG disable */
|
||||
void api_hal_power_disable_otg();
|
Reference in New Issue
Block a user