PixelKey
NeoPixel USB Key
Loading...
Searching...
No Matches
PixelKey Tasks

Macros

#define CSI_CHAR_END_START   (2U)
 Position to begin looking for the CSI end character.
 
#define CSI_CHAR_END_MIN_VALUE   (0x40U)
 Minimum value for the CSI end character.
 
#define CSI_CHAR_END_MAX_VALUE   (0x7EU)
 Maximum value of the CSI end character.
 

Functions

 _Pragma ("GCC diagnostic ignored \"-W\" \"missing-prototypes\"")
 Input buffer for received command data over USB.
 
void __NO_RETURN pixelkey_reboot (void)
 
void pixelkey_task_do_frame (void)
 Renders and queues a frame to be transferred at the next frame interval. More...
 
void pixelkey_task_terminal_connected (void)
 Sends initial strings for a connected terminal.
 
void pixelkey_task_command_prompt (void)
 Sends the command prompt.
 
void pixelkey_task_command_rx (void)
 Processes data from the USB input buffer and parses into a command.
 
static void echo_str (uint8_t *str, size_t length)
 Echos a string back to the serial interface if echo is enabled or if a terminal is detected. More...
 

Detailed Description

Function Documentation

◆ echo_str()

static void echo_str ( uint8_t *  str,
size_t  length 
)
static

Echos a string back to the serial interface if echo is enabled or if a terminal is detected.

Parameters
[in]strData to echo.
lengthNumber of bytes to write.

◆ pixelkey_task_do_frame()

void pixelkey_task_do_frame ( void  )

Renders and queues a frame to be transferred at the next frame interval.

Todo:
Change this to a copy function in npdata?