|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Initialisation configuration. More...
#include <ra8_power_profile.h>
Data Fields | |
| ra8_power_profile_gpio_pulse_fn_t | pulse |
| GPIO edge hook (may be nullptr). | |
| ra8_power_profile_now_us_fn_t | now_us |
| Clock hook, us (may be nullptr). | |
| void * | user_ctx_gpio |
| Opaque pointer passed to pulse. | |
| void * | user_ctx_time |
| Opaque pointer passed to now_us. | |
Initialisation configuration.
Wires the profiler to the application's GPIO and time-base hooks. Either hook may be nullptr – a null GPIO hook turns the helper into a pure software accumulator (useful in unit tests); a null time-base hook disables total_time_us accumulation while still counting entries.
Definition at line 203 of file ra8_power_profile.h.
| ra8_power_profile_now_us_fn_t ra8_power_profile_config_t::now_us |
Clock hook, us (may be nullptr).
Definition at line 205 of file ra8_power_profile.h.
| ra8_power_profile_gpio_pulse_fn_t ra8_power_profile_config_t::pulse |
GPIO edge hook (may be nullptr).
Definition at line 204 of file ra8_power_profile.h.
| void* ra8_power_profile_config_t::user_ctx_gpio |
Opaque pointer passed to pulse.
Definition at line 206 of file ra8_power_profile.h.
| void* ra8_power_profile_config_t::user_ctx_time |
Opaque pointer passed to now_us.
Definition at line 207 of file ra8_power_profile.h.