FastLED 3.9.15
Loading...
Searching...
No Matches
handler.cpp.hpp
Go to the documentation of this file.
1
3
5#include "platforms/isr.h"
6
7namespace fl {
8namespace isr {
9
10int attach_timer_handler(const config& cfg, handle* out_handle) {
11 return isr::platforms::attach_timer_handler(cfg, out_handle);
12}
13
14int attach_external_handler(u8 pin, const config& cfg, handle* out_handle) {
15 return isr::platforms::attach_external_handler(pin, cfg, out_handle);
16}
17
19 return isr::platforms::detach_handler(h);
20}
21
23 return isr::platforms::enable_handler(h);
24}
25
27 return isr::platforms::disable_handler(h);
28}
29
30bool is_handler_enabled(const handle& h) {
31 return isr::platforms::is_handler_enabled(h);
32}
33
34const char* get_error_string(int error_code) {
35 return isr::platforms::get_error_string(error_code);
36}
37
38const char* get_platform_name() {
39 return isr::platforms::get_platform_name();
40}
41
43 return isr::platforms::get_max_timer_frequency();
44}
45
47 return isr::platforms::get_min_timer_frequency();
48}
49
51 return isr::platforms::get_max_priority();
52}
53
55 return isr::platforms::requires_assembly_handler(priority);
56}
57
58} // namespace isr
59} // namespace fl
ISR handler types and API declarations.
u32 get_max_timer_frequency()
Get the maximum timer frequency supported by this platform.
int detach_handler(handle &h)
Detach an ISR handler.
bool is_handler_enabled(const handle &h)
Query if an ISR is currently enabled.
int disable_handler(handle &h)
Disable an ISR temporarily (without detaching).
u32 get_min_timer_frequency()
Get the minimum timer frequency supported by this platform.
int enable_handler(handle &h)
Enable an ISR (after temporary disable).
int attach_timer_handler(const config &cfg, handle *out_handle)
Attach a timer-based ISR handler.
u8 get_max_priority()
Get the maximum priority level supported by this platform.
const char * get_error_string(int error_code)
Get platform-specific error description.
int attach_external_handler(u8 pin, const config &cfg, handle *out_handle)
Attach an external interrupt handler (GPIO-based).
const char * get_platform_name()
Get the platform name.
bool requires_assembly_handler(u8 priority)
Check if assembly is required for a given priority level.
unsigned char u8
Definition stdint.h:131
Base definition for an LED controller.
Definition crgb.hpp:179
Configuration for ISR attachment.
Definition handler.h:19
Opaque handle to an attached ISR.
Definition handler.h:36