|
PixelKey
NeoPixel USB Key
|
#include <stdlib.h>#include <stdint.h>#include <stdbool.h>#include <string.h>#include <ctype.h>#include "hal_device.h"#include "ring_buffer.h"#include "pixelkey_errors.h"#include "pixelkey_commands.h"Functions | |
| static char * | trim (char *str) |
| Removes white-space from an input string; replaces trailing white-space with NULL character. More... | |
| static void | lower (char *str) |
| Converts a string to lower-case. More... | |
| static pixelkey_error_t | parse_no_args (cmd_type_t type, char *arg_ctx, cmd_t *p_cmd) |
| Parses a command that takes no arguments. More... | |
| static pixelkey_error_t | parse_config_get (char *arg_ctx, cmd_t *p_cmd) |
| Parses config-get command arguments. More... | |
| static pixelkey_error_t | parse_config_set (char *arg_ctx, cmd_t *p_cmd) |
| Parses config-set command arguments. More... | |
| static pixelkey_error_t | parse_time_set (char *arg_ctx, cmd_t *p_cmd) |
| Parses time-set command arguments. More... | |
| static pixelkey_error_t | parse_keyframe (char *cmd_tok, cmd_t *p_cmd) |
| Parses a keyframe command. More... | |
| pixelkey_error_t | pixelkey_command_parse (char *command_str, cmd_list_t **p_cmd_list) |
| Parses a command string. More... | |
| static uint8_t | char_to_u8 (char c) |
| Converts a character to an integer. More... | |
| void | pixelkey_cmd_free (cmd_t *p_cmd) |
| void | pixelkey_cmd_list_free (cmd_list_t *p_cmd_list) |