15 #ifndef LIBBSP_ARM_ATSAM_POWER_H 16 #define LIBBSP_ARM_ATSAM_POWER_H 18 #include <sys/types.h> 53 atsam_power_state state
124 void atsam_power_change_state(
127 atsam_power_state state
141 void atsam_power_handler_peripheral(
143 atsam_power_state state
157 void atsam_power_handler_clock_driver(
159 atsam_power_state state
174 void atsam_power_handler_rtc_driver(
176 atsam_power_state state
187 void atsam_power_handler_sleep_mode(
189 atsam_power_state state
198 #define ATSAM_POWER_PERIPHERAL(f, l) \ 200 .handler = atsam_power_handler_peripheral, \ 201 .data = { .peripherals = { .first = f, .last = l } } \ 204 #define ATSAM_POWER_HANDLER(h, a) \ 207 .data = { .arg = a } \ 210 #define ATSAM_POWER_CLOCK_DRIVER \ 211 { .handler = atsam_power_handler_clock_driver } 213 #define ATSAM_POWER_SLEEP_MODE \ 214 { .handler = atsam_power_handler_sleep_mode } 226 } atsam_power_data_rtc_driver;
235 #define ATSAM_POWER_RTC_DRIVER(a) \ 237 .handler = atsam_power_handler_rtc_driver, \ 238 .data = { .arg = a } \ Control structure for power control handling.
Definition: power.h:47
Definition: intercom.c:74
void(* handler)(const struct atsam_power_control *control, atsam_power_state state)
Data pointer to the handler with its desired state.
Definition: power.h:51
union atsam_power_control::@7 data
Data chunk that is used by the handler.