21 #include "nrf_error.h"
25 #define VRECT_DEFAULT_VAL 0
26 #define IRECT_DEFAULT_VAL 100
27 #define VOUT_DEFAULT_VAL 2000
28 #define IOUT_DEFAULT_VAL 100
29 #define TEMP_DEFAULT_VAL 20
#define IRECT_DEFAULT_VAL
#define VRECT_DEFAULT_VAL
uint32_t pru_hal_wired_charge_detect_status_get(bool *p_wired)
Get the status of whether the PRU is charged by wire.
static ctl_adj_power_t m_power_adj
uint32_t pru_hal_temperature_get(int16_t *p_temperature)
Read the temperature.
static bool m_power_adjusted
uint32_t pru_hal_power_adjusted_set(bool adjusted)
Set power adjusted value.
uint32_t pru_hal_vout_get(uint16_t *p_vout)
Read the voltage output to battery.
uint32_t pru_hal_vrect_get(uint16_t *p_vrect)
Read the value of VRECT.
uint32_t pru_hal_adj_power_set(ctl_adj_power_t adj_setting)
Limit maximum power consumed by PRU.
uint32_t pru_hal_charge_complete_status_get(bool *p_charge_complete)
Get the status of whether the PRU is charged.
uint32_t pru_hal_vout_enable_get(bool *enable)
Get status of VOUT enable.
static bool m_wired_charge_detected
uint32_t pru_hal_irect_get(uint16_t *p_irect)
Read the value of IRECT.
uint32_t pru_hal_init(void)
Initialize the PRU's Hardware abstraction layer.
uint32_t pru_hal_adj_power_get(ctl_adj_power_t *adj_setting)
Get adjust power setting.
ctl_adj_power_t
Power adjust settings in control packet.
uint32_t pru_hal_vout_enable_set(bool enable)
Enable output to battery.
uint32_t pru_hal_iout_get(uint16_t *p_iout)
Read the value of IOUT.
uint32_t pru_hal_power_adjusted_get(bool *adjusted)
This function is called by the PRU profile to see if the PRU has limited its power consumption as ins...
static bool m_vout_enable
static bool m_charge_complete