1#ifndef HAL_NPDATA_TRANSFER_H
2#define HAL_NPDATA_TRANSFER_H
14#include "hal_device.h"
18#define NPDATA_FRAME_BUFFER_SIZE (PIXELKEY_NEOPIXEL_COUNT * sizeof(color_rgb_t))
23typedef enum e_transfer_status
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.
Definition: hal_npdata_transfer.c:265
void npdata_open(void)
Opens the peripherals needed for data transmission to the NeoPixels.
Definition: hal_npdata_transfer.c:235
transfer_status_t npdata_status_get(void)
Gets the current status of the NeoPixel data transfer.
Definition: hal_npdata_transfer.c:280
void npdata_frame_send(void)
Kicks off a frame transmission to the attached NeoPixels.
Definition: hal_npdata_transfer.c:179
transfer_status_t
Status of the NeoPixel data transfer.
Definition: hal_npdata_transfer.h:24
volatile color_rgb_t * npdata_frame_buffer_get(void)
Gets a pointer to the frame buffer.
Definition: hal_npdata_transfer.c:171
@ TRANSFER_STATUS_WORKING
A transfer is currently active.
Definition: hal_npdata_transfer.h:26
@ TRANSFER_STATUS_IDLE
No active transfer.
Definition: hal_npdata_transfer.h:25
Color represented in red-green-blue color space.
Definition: color.h:70