|
PixelKey
NeoPixel USB Key
|
Modules | |
| Fade Keyframe | |
| Keyframe for transitioning between two or more colors. | |
| Blink Keyframe | |
| Keyframe to blink between two colors. | |
| Set Keyframe | |
| Keyframe to set a NeoPixel to a constant color. | |
Data Structures | |
| struct | keyframe_base_api_t |
| Base API for all keyframe types. More... | |
| struct | keyframe_schedule_t |
| Provides scheduled time information for keyframes. More... | |
| struct | keyframe_base_t |
| Base struct for all keyframe types, must be the first element in child structs. More... | |
| struct | keyframe_group_t |
| Storage and state for keyframe groups. More... | |
Macros | |
| #define | FRAMERATE_MIN (1U) |
| Minimum supported frame rate, frames per second. | |
| #define | FRAMERATE_MAX (128U) |
| Maximum supported frame rate, frames per second. More... | |
| #define | TIMESTEP_FINISHED ((timestep_t) 0U) |
| No more timesteps are required. | |
| #define | TIMESTEP_INDEFINITE ((timestep_t) UINT32_MAX) |
| Indefinite time remaining. | |
| #define | GROUP_CHILDREN_MAX_COUNT (16) |
| Maximum allowed child keyframes. | |
Typedefs | |
| typedef uint32_t | timestep_t |
| The base unit of time for animating keyframes; resolution of 1 frame. | |
| typedef uint8_t | framerate_t |
| Number of frames per second. | |
Enumerations | |
| enum | schedule_type_t { SCHEDULE_TYPE_NONE , SCHEDULE_TYPE_FIXED , SCHEDULE_TYPE_RELATIVE , SCHEDULE_TYPE_INTERVAL } |
| Types of supported keyframe schedules. More... | |
| enum | keyframe_flag_t { KEYFRAME_FLAG_NONE = 0UL , KEYFRAME_FLAG_INITIALIZED = (1UL << 30) , KEYFRAME_FLAG_GROUP = (1UL << 31) } |
| Management flags for keyframes. More... | |
Functions | |
| keyframe_base_t * | keyframe_blink_parse (char *p_str) |
| Parses a command string into a Blink Keyframe. More... | |
| keyframe_base_t * | keyframe_blink_ctor (keyframe_blink_t *p_blink) |
| Initialize a Blink keyframe with the appropriate keyframe_base_t and state values. More... | |
| keyframe_base_t * | keyframe_fade_parse (char *p_str) |
| Parses a command string into a Fade Keyframe. More... | |
| keyframe_base_t * | keyframe_fade_ctor (keyframe_fade_t *p_fade) |
| Initialize a Fade keyframe with the appropriate keyframe_base_t and state values. More... | |
| keyframe_base_t * | keyframe_set_parse (char *p_str) |
| Parses a command string into a Set Keyframe. More... | |
| keyframe_base_t * | keyframe_set_ctor (keyframe_set_t *p_set) |
| Initialize a Set keyframe with the appropriate keyframe_base_t values. More... | |
| #define FRAMERATE_MAX (128U) |
Maximum supported frame rate, frames per second.
This is based on the resolutions for the RTC peripheral.
| enum keyframe_flag_t |
| enum schedule_type_t |
| keyframe_base_t * keyframe_blink_ctor | ( | keyframe_blink_t * | p_blink | ) |
Initialize a Blink keyframe with the appropriate keyframe_base_t and state values.
| [in] | p_blink | Pointer to the blink keyframe to construct, or NULL to allocate a new one. |
| keyframe_base_t * keyframe_blink_parse | ( | char * | p_str | ) |
Parses a command string into a Blink Keyframe.
| [in] | p_str | Pointer to the command string. |
| keyframe_base_t * keyframe_fade_ctor | ( | keyframe_fade_t * | p_fade | ) |
Initialize a Fade keyframe with the appropriate keyframe_base_t and state values.
| [in] | p_fade | Pointer to the fade keyframe to construct, or NULL to allocate a new one. |
| keyframe_base_t * keyframe_fade_parse | ( | char * | p_str | ) |
Parses a command string into a Fade Keyframe.
| [in] | p_str | Pointer to the command string. |
| keyframe_base_t * keyframe_set_ctor | ( | keyframe_set_t * | p_set | ) |
Initialize a Set keyframe with the appropriate keyframe_base_t values.
| [in] | p_set | Pointer to the set keyframe to construct, or NULL to allocate a new one. |
| keyframe_base_t * keyframe_set_parse | ( | char * | p_str | ) |
Parses a command string into a Set Keyframe.
| [in] | p_str | Pointer to the command string. |