|
PixelKey
NeoPixel USB Key
|
PixelKey generic processes. More...
Modules | |
| Command Processor Internals | |
| Configuration | |
| PixelKey Keyframe Processor Internals | |
| Keyframes | |
| PixelKey Command Set | |
| Hardware Abstraction Layer for PixelKey | |
| Provides abstraction functions for various hardware methods. | |
| Real-Time Clock Abstraction | |
| Serial Communications Abstraction | |
| PixelKey Tasks | |
Enumerations | |
| enum | pixelkey_error_t { PIXELKEY_ERROR_NONE = 0 , PIXELKEY_ERROR_INVALID_ARGUMENT = 1 , PIXELKEY_ERROR_BUFFER_FULL = 2 , PIXELKEY_ERROR_COMMUNICATION_ERROR = 3 , PIXELKEY_ERROR_INPUT_BUFFER_OVERFLOW = 4 , PIXELKEY_ERROR_INDEX_OUT_OF_RANGE = 5 , PIXELKEY_ERROR_KEYFRAME_PROCESSING_STOPPED = 6 , PIXELKEY_ERROR_RTC_NOT_SET = 7 , PIXELKEY_ERROR_NOT_ENOUGH_ARGUMENTS = 8 , PIXELKEY_ERROR_TOO_MANY_ARGUMENTS = 9 , PIXELKEY_ERROR_UNKNOWN_COMMAND = 10 , PIXELKEY_ERROR_KEY_NOT_FOUND = 16 , PIXELKEY_ERROR_NV_MEMORY_ERROR = 17 , PIXELKEY_ERROR_VALUE_OUT_OF_RANGE = 18 , PIXELKEY_ERROR_NV_NOT_INITIALIZED = 19 , PIXELKEY_ERROR_NV_CRC_MISMATCH = 20 , PIXELKEY_ERROR_MISSING_BLOCKS = 32 , PIXELKEY_ERROR_CRC_MISMATCH = 33 , PIXELKEY_ERROR_OUT_OF_MEMORY = 48 , PIXELKEY_ERROR_HAL_ERROR = 49 } |
| PixelKey errors. More... | |
Functions | |
| void | pixelkey_frameproc_init (framerate_t framerate) |
| Initializes the keyframe processor. More... | |
| void | pixelkey_keyframeproc_framerate_set (framerate_t framerate) |
| Sets the framerate used to render keyframes. More... | |
| uint32_t | pixelkey_keyframeproc_framecount_get (void) |
| Gets the total numbered of rendered frames. More... | |
| pixelkey_error_t | pixelkey_keyframeproc_render_frame (color_rgb_t *p_frame_buffer) |
| Performs a render of the current keyframes. More... | |
| pixelkey_error_t | pixelkey_keyframeproc_push (uint8_t index, keyframe_base_t *p_keyframe) |
| Pushes a keyframe into the queue for a given NeoPixel index. More... | |
| void | pixelkey_commandproc_init (void) |
| Initialize the command processor. | |
| void | pixelkey_commandproc_task (void) |
| Executes queued commands. More... | |
| void | pixelkey_commandproc_terminal_connected (void) |
| Writes the initial device info and terminal prompt when a terminal attach is detected. | |
| void | pixelkey_commandproc_send_prompt (void) |
| Writes the terminal prompt. More... | |
| pixelkey_error_t | pixelkey_commandproc_push (cmd_t *p_cmd) |
| Pushes a command to the processor buffer. More... | |
PixelKey generic processes.
The PixelKey processes are designed to be processor agnostic. All implementation specific details should be contained in PixelKey HAL.
| enum pixelkey_error_t |
PixelKey errors.
| pixelkey_error_t pixelkey_commandproc_push | ( | cmd_t * | p_cmd | ) |
Pushes a command to the processor buffer.
| [in] | p_cmd | Pointer to the command to queue. |
| PIXELKEY_ERROR_BUFFER_FULL | No more space in the command queue. |
| PIXELKEY_ERROR_NONE | Command was pushed to the queue. |
| void pixelkey_commandproc_send_prompt | ( | void | ) |
Writes the terminal prompt.
This is done as a task so that it can execute after all command processing has been completed.
| void pixelkey_commandproc_task | ( | void | ) |
Executes queued commands.
| void pixelkey_frameproc_init | ( | framerate_t | framerate | ) |
Initializes the keyframe processor.
| framerate | The initial framerate to use. |
| uint32_t pixelkey_keyframeproc_framecount_get | ( | void | ) |
Gets the total numbered of rendered frames.
| void pixelkey_keyframeproc_framerate_set | ( | framerate_t | framerate | ) |
Sets the framerate used to render keyframes.
| framerate | The framerate to use. |
| pixelkey_error_t pixelkey_keyframeproc_push | ( | uint8_t | index, |
| keyframe_base_t * | p_keyframe | ||
| ) |
Pushes a keyframe into the queue for a given NeoPixel index.
| index | Index of NeoPixel. | |
| [in] | p_keyframe | Pointer to keyframe to push. |
| PIXELKEY_ERROR_NONE | Push was successful |
| PIXELKEY_ERROR_INDEX_OUT_OF_RANGE | Index is higher than maximum available NeoPixel. |
| PIXELKEY_ERROR_BUFFER_FULL | Buffer if full for the given NeoPixel queue. |
| pixelkey_error_t pixelkey_keyframeproc_render_frame | ( | color_rgb_t * | p_frame_buffer | ) |
Performs a render of the current keyframes.
| PIXELKEY_ERROR_NONE | Frame render was successful. |