28#ifndef LIBBSP_ARM_ATSAM_POWER_H
29#define LIBBSP_ARM_ATSAM_POWER_H
66 atsam_power_state state
137void atsam_power_change_state(
140 atsam_power_state state
154void atsam_power_handler_peripheral(
156 atsam_power_state state
170void atsam_power_handler_clock_driver(
172 atsam_power_state state
187void atsam_power_handler_rtc_driver(
189 atsam_power_state state
197void atsam_power_handler_sleep_mode(
199 atsam_power_state state
209void atsam_power_handler_wait_mode(
211 atsam_power_state state
220#define ATSAM_POWER_PERIPHERAL(f, l) \
222 .handler = atsam_power_handler_peripheral, \
223 .data = { .peripherals = { .first = f, .last = l } } \
226#define ATSAM_POWER_HANDLER(h, a) \
229 .data = { .arg = a } \
232#define ATSAM_POWER_CLOCK_DRIVER \
233 { .handler = atsam_power_handler_clock_driver }
235#define ATSAM_POWER_SLEEP_MODE \
236 { .handler = atsam_power_handler_sleep_mode }
238#define ATSAM_POWER_WAIT_MODE \
239 { .handler = atsam_power_handler_wait_mode }
253} atsam_power_data_rtc_driver;
262#define ATSAM_POWER_RTC_DRIVER(a) \
264 .handler = atsam_power_handler_rtc_driver, \
265 .data = { .arg = a } \
Control structure for power control handling.
Definition: power.h:60
void(* handler)(const struct atsam_power_control *control, atsam_power_state state)
Data pointer to the handler with its desired state.
Definition: power.h:64
union atsam_power_control::@7 data
Data chunk that is used by the handler.
Definition: intercom.c:87