Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
Macros | |
#define | TMUX_SET(hal_fun, arg) |
Macro for multiplexing **hal**set() functions. More... | |
#define | TMUX_GET(hal_fun, arg, override_val) |
Macro for multiplexing **hal**get() functions. More... | |
Enumerations | |
enum | tmux_select_t { TMUX_SELECT_NO_OVERRIDE = 0, TMUX_SELECT_OVERRIDE } |
Enumerator used for configuring test multiplexer. | |
Functions | |
uint32_t | tmux_init (void) |
Initialize the PTU's test multiplexer. More... | |
void | tmux_get_select (tmux_select_t select) |
Select source for all **tmux**get() functions. More... | |
void | tmux_set_select (tmux_select_t select) |
Select whether override values shall be used when writing to **hal**set() functions. More... | |
API implementation. | |
uint32_t | ptu_tmux_poweramp_enable_set (bool enable) |
Test wrapper for ptu_hal_poweramp_enable_set(). More... | |
uint32_t | ptu_tmux_poweramp_level_set (uint16_t level) |
Test wrapper for ptu_hal_poweramp_level_set(). More... | |
uint32_t | ptu_tmux_poweramp_enable_get (bool *enable) |
Test wrapper for ptu_hal_poweramp_enable_get();. More... | |
uint32_t | ptu_tmux_poweramp_level_get (uint16_t *p_level) |
Test wrapper for ptu_hal_poweramp_level_get(). More... | |
uint32_t | ptu_tmux_itx_get (uint16_t *p_itx) |
Test wrapper for ptu_hal_itx_get(). More... | |
uint32_t | ptu_tmux_vtx_get (uint16_t *p_vtx) |
Test wrapper for ptu_hal_vtx_get(). More... | |
uint32_t | ptu_tmux_ptx_get (uint16_t *p_ptx) |
Test wrapper for ptu_hal_ptx_get(). More... | |
uint32_t | ptu_tmux_temperature_get (int16_t *p_temperature) |
Test wrapper for ptu_hal_temperature_get(). More... | |
#define TMUX_SET | ( | hal_fun, | |
arg | |||
) |
Macro for multiplexing **hal**set() functions.
[in] | hal_fun | is the HAL function to be written. |
[in] | arg | is the argument of the HAL function to be written. |
Definition at line 35 of file test_mux_common.h.
#define TMUX_GET | ( | hal_fun, | |
arg, | |||
override_val | |||
) |
Macro for multiplexing **hal**get() functions.
[in] | hal_fun | is the HAL function to be read. |
[out] | arg | is the variable where the read value shall be written. |
[in] | override_val | is the corresponding override value for the HAL function. |
Definition at line 56 of file test_mux_common.h.
uint32_t tmux_init | ( | void | ) |
Initialize the PTU's test multiplexer.
NRF_SUCCESS | Initialization succeeded. |
Definition at line 53 of file pru_test_mux.c.
void tmux_get_select | ( | tmux_select_t | select | ) |
Select source for all **tmux**get() functions.
[in] | select | selects the source for values returned by **tmux**get() functions.
|
Definition at line 135 of file pru_test_mux.c.
void tmux_set_select | ( | tmux_select_t | select | ) |
Select whether override values shall be used when writing to **hal**set() functions.
[in] | select | selects the source for values written to HAL.
|
Definition at line 140 of file pru_test_mux.c.
uint32_t pru_tmux_vrect_get | ( | uint16_t * | p_vrect | ) |
Test wrapper for pru_hal_vrect_get().
[out] | p_vrect | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 67 of file pru_test_mux.c.
uint32_t pru_tmux_irect_get | ( | uint16_t * | p_irect | ) |
Test wrapper for pru_hal_irect_get().
[out] | p_irect | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 72 of file pru_test_mux.c.
uint32_t pru_tmux_vout_enable_get | ( | bool * | enable | ) |
Test wrapper for pru_hal_vout_enable_get().
[out] | enable | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 77 of file pru_test_mux.c.
uint32_t pru_tmux_vout_get | ( | uint16_t * | p_vout | ) |
Test wrapper for pru_hal_vout_get().
[out] | p_vout | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 82 of file pru_test_mux.c.
uint32_t pru_tmux_iout_get | ( | uint16_t * | p_iout | ) |
Test wrapper for pru_hal_iout_get().
[out] | p_iout | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 87 of file pru_test_mux.c.
uint32_t pru_tmux_temperature_get | ( | int16_t * | p_temperature | ) |
Test wrapper for pru_hal_temperature_get().
[out] | p_temperature | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 92 of file pru_test_mux.c.
uint32_t pru_tmux_wired_charge_detect_status_get | ( | bool * | p_wired | ) |
Test wrapper for pru_hal_wired_charge_detect_status_get().
[out] | p_wired | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 97 of file pru_test_mux.c.
uint32_t pru_tmux_charge_complete_status_get | ( | bool * | p_charge_complete | ) |
Test wrapper for pru_hal_charge_complete_status_get().
[out] | p_charge_complete | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 102 of file pru_test_mux.c.
uint32_t pru_tmux_vout_enable_set | ( | bool | enable | ) |
Test wrapper for pru_hal_vout_enable_set().
[in] | enable | value to be set. |
NRF_SUCCESS | Enabled successfully. |
Definition at line 107 of file pru_test_mux.c.
uint32_t pru_tmux_adj_power_set | ( | ctl_adj_power_t | adj_setting | ) |
Test wrapper for pru_hal_adj_power_set().
[in] | adj_setting | value to be set. |
NRF_SUCCESS | Value was set successfully. |
Definition at line 112 of file pru_test_mux.c.
uint32_t pru_tmux_adj_power_get | ( | ctl_adj_power_t * | adj_setting | ) |
Test wrapper for pru_hal_adj_power_get().
[out] | adj_setting | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 117 of file pru_test_mux.c.
uint32_t pru_tmux_power_adjusted_get | ( | bool * | adjusted | ) |
Test wrapper for pru_hal_power_adjusted_get().
[out] | adjusted | return value. |
NRF_SUCCESS | Value was read successfully.. |
Definition at line 122 of file pru_test_mux.c.
uint32_t pru_tmux_power_adjusted_set | ( | bool | adjusted | ) |
Test wrapper for pru_hal_power_adjusted_set().
[in] | adjusted | value. |
NRF_SUCCESS | Success. |
Definition at line 127 of file pru_test_mux.c.
void pru_tmux_override_values_set | ( | pru_tmux_override_t * | values | ) |
Set override values.
[in] | values | values to be written. |
Definition at line 146 of file pru_test_mux.c.
void pru_tmux_override_values_get | ( | pru_tmux_override_t * | values | ) |
Get ovveride values.
[out] | values | returned override values. |
Definition at line 152 of file pru_test_mux.c.
uint32_t ptu_tmux_poweramp_enable_set | ( | bool | enable | ) |
Test wrapper for ptu_hal_poweramp_enable_set().
[in] | enable | value to be set. |
NRF_SUCCESS | Enabled successfully. |
Definition at line 69 of file ptu_test_mux.c.
uint32_t ptu_tmux_poweramp_level_set | ( | uint16_t | level | ) |
Test wrapper for ptu_hal_poweramp_level_set().
[in] | level | value to be set. |
NRF_SUCCESS | Value was set successfully. |
Definition at line 74 of file ptu_test_mux.c.
uint32_t ptu_tmux_poweramp_enable_get | ( | bool * | enable | ) |
Test wrapper for ptu_hal_poweramp_enable_get();.
[out] | enable | return value. |
NRF_SUCCESS | Enable was read successfully. |
Definition at line 79 of file ptu_test_mux.c.
uint32_t ptu_tmux_poweramp_level_get | ( | uint16_t * | p_level | ) |
Test wrapper for ptu_hal_poweramp_level_get().
[out] | p_level | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 86 of file ptu_test_mux.c.
uint32_t ptu_tmux_itx_get | ( | uint16_t * | p_itx | ) |
Test wrapper for ptu_hal_itx_get().
[out] | p_itx | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 93 of file ptu_test_mux.c.
uint32_t ptu_tmux_vtx_get | ( | uint16_t * | p_vtx | ) |
Test wrapper for ptu_hal_vtx_get().
[out] | p_vtx | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 100 of file ptu_test_mux.c.
uint32_t ptu_tmux_ptx_get | ( | uint16_t * | p_ptx | ) |
Test wrapper for ptu_hal_ptx_get().
[out] | p_ptx | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 107 of file ptu_test_mux.c.
uint32_t ptu_tmux_temperature_get | ( | int16_t * | p_temperature | ) |
Test wrapper for ptu_hal_temperature_get().
[out] | p_temperature | return value. |
NRF_SUCCESS | Value was read successfully. |
Definition at line 114 of file ptu_test_mux.c.