Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
pru_hal.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "wpt.h"

Go to the source code of this file.

Functions

uint32_t pru_hal_init (void)
 Initialize the PRU's Hardware abstraction layer. More...
 
uint32_t pru_hal_vrect_get (uint16_t *p_vrect)
 Read the value of VRECT. More...
 
uint32_t pru_hal_irect_get (uint16_t *p_irect)
 Read the value of IRECT. More...
 
uint32_t pru_hal_vout_enable_set (bool enable)
 Enable output to battery. More...
 
uint32_t pru_hal_vout_enable_get (bool *enable)
 Get status of VOUT enable. More...
 
uint32_t pru_hal_vout_get (uint16_t *p_vout)
 Read the voltage output to battery. More...
 
uint32_t pru_hal_iout_get (uint16_t *p_iout)
 Read the value of IOUT. More...
 
uint32_t pru_hal_temperature_get (int16_t *p_temperature)
 Read the temperature. More...
 
uint32_t pru_hal_wired_charge_detect_status_get (bool *p_wired)
 Get the status of whether the PRU is charged by wire. More...
 
uint32_t pru_hal_charge_complete_status_get (bool *p_charge_complete)
 Get the status of whether the PRU is charged. More...
 
uint32_t pru_hal_adj_power_set (ctl_adj_power_t adj_setting)
 Limit maximum power consumed by PRU. More...
 
uint32_t pru_hal_adj_power_get (ctl_adj_power_t *adj_setting)
 Get adjust power setting. More...
 
uint32_t pru_hal_power_adjusted_set (bool adjusted)
 Set power adjusted value. More...
 
uint32_t pru_hal_power_adjusted_get (bool *p_adjusted)
 This function is called by the PRU profile to see if the PRU has limited its power consumption as instructed by previous call to 'pru_hal_adj_power_set()'. More...