|
PixelKey
NeoPixel USB Key
|
Modules | |
| NeoPixel Data Transfer Internals | |
Macros | |
| #define | NPDATA_FRAME_BUFFER_SIZE (PIXELKEY_NEOPIXEL_COUNT * sizeof(color_rgb_t)) |
| Size of the frame buffer in bytes. | |
Enumerations | |
| enum | transfer_status_t { TRANSFER_STATUS_IDLE , TRANSFER_STATUS_WORKING } |
| Status of the NeoPixel data transfer. More... | |
Functions | |
| void | npdata_open (void) |
| Opens the peripherals needed for data transmission to the NeoPixels. | |
| void | npdata_frame_send (void) |
| Kicks off a frame transmission to the attached NeoPixels. | |
| void | npdata_color_set (uint32_t index, color_rgb_t const *const p_color) |
| Copies a color to the specified index of the frame buffer. More... | |
| transfer_status_t | npdata_status_get (void) |
| Gets the current status of the NeoPixel data transfer. More... | |
| volatile color_rgb_t * | npdata_frame_buffer_get (void) |
| Gets a pointer to the frame buffer. More... | |
| enum transfer_status_t |
| void npdata_color_set | ( | uint32_t | index, |
| color_rgb_t const *const | p_color | ||
| ) |
Copies a color to the specified index of the frame buffer.
| index | The index to write. | |
| [in] | p_color | Pointer to the color to copy. |
| volatile color_rgb_t * npdata_frame_buffer_get | ( | void | ) |
Gets a pointer to the frame buffer.
| transfer_status_t npdata_status_get | ( | void | ) |
Gets the current status of the NeoPixel data transfer.
| TRANSFER_STATUS_IDLE | No transfers are active. |
| TRANSFER_STATUS_WORKING | Data is currently being transferred. |