Add generated libs to gitignore
This commit is contained in:
parent
e56294a400
commit
8da1adcb9b
5 changed files with 2 additions and 823 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
.pio
|
.pio
|
||||||
.vscode/
|
.vscode/
|
||||||
|
lib/pb_gen/
|
||||||
|
tmp/
|
||||||
|
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"terminal.integrated.env.windows": {
|
|
||||||
"PATH": "C:\\Users\\lord\\.platformio\\penv\\Scripts;C:\\Users\\lord\\.platformio\\penv;F:\\toolchain\\Python37\\Scripts\\;F:\\toolchain\\Python37\\;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\AMD APP\\bin\\x86_64;C:\\Program Files (x86)\\AMD APP\\bin\\x86;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files (x86)\\GNU\\GnuPG\\pub;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;F:\\Program Files (x86)\\Calibre2\\;C:\\Program Files (x86)\\Common Files\\Adobe\\AGL;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\Windows Live\\Shared;f:\\Program Files (x86)\\Universal Extractor;f:\\Program Files (x86)\\Universal Extractor\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;F:\\Program Files (x86)\\GtkSharp\\2.12\\bin;F:\\Program Files\\nodejs\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseGit\\bin;F:\\Program Files\\Microsoft VS Code\\bin;f:\\toolchain\\;F:\\toolchain\\CMake\\bin;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;f:\\Program Files (x86)\\OpenVPN\\bin;f:\\Program Files (x86)\\Nmap;C:\\Users\\lord\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\lord\\AppData\\Roaming\\npm;f:\\program files\\Microsoft VS Code\\bin;C:\\Users\\lord\\AppData\\Local\\Microsoft\\WindowsApps;;f:\\Program Files\\Docker Toolbox;F:\\toolchain\\Python37\\Scripts\\;F:\\toolchain\\Python37\\;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\AMD APP\\bin\\x86_64;C:\\Program Files (x86)\\AMD APP\\bin\\x86;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files (x86)\\GNU\\GnuPG\\pub;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;F:\\Program Files (x86)\\Calibre2\\;C:\\Program Files (x86)\\Common Files\\Adobe\\AGL;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\Windows Live\\Shared;f:\\Program Files (x86)\\Universal Extractor;f:\\Program Files (x86)\\Universal Extractor\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;F:\\Program Files (x86)\\GtkSharp\\2.12\\bin;F:\\Program Files\\nodejs\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseGit\\bin;F:\\Program Files\\Microsoft VS Code\\bin;f:\\toolchain\\;F:\\toolchain\\CMake\\bin;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;f:\\Program Files (x86)\\OpenVPN\\bin;f:\\Program Files (x86)\\Nmap;C:\\Users\\lord\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\lord\\AppData\\Roaming\\npm;f:\\program files\\Microsoft VS Code\\bin;C:\\Users\\lord\\AppData\\Local\\Microsoft\\WindowsApps;;f:\\Program Files\\Docker Toolbox",
|
|
||||||
"PLATFORMIO_CALLER": "vscode"
|
|
||||||
}
|
|
||||||
}
|
|
BIN
lib/pb_gen/fx.pb
BIN
lib/pb_gen/fx.pb
Binary file not shown.
|
@ -1,249 +0,0 @@
|
||||||
/* Automatically generated nanopb constant definitions */
|
|
||||||
/* Generated by nanopb-0.3.9.3 at Sun Oct 13 00:30:37 2019. */
|
|
||||||
|
|
||||||
#include "fx.pb.h"
|
|
||||||
|
|
||||||
/* @@protoc_insertion_point(includes) */
|
|
||||||
#if PB_PROTO_HEADER_VERSION != 30
|
|
||||||
#error Regenerate this file with the current version of nanopb generator.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const pb_field_t fx_RGB_fields[4] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_RGB, r, r, 0),
|
|
||||||
PB_FIELD( 2, UINT32 , REQUIRED, STATIC , OTHER, fx_RGB, g, r, 0),
|
|
||||||
PB_FIELD( 3, UINT32 , REQUIRED, STATIC , OTHER, fx_RGB, b, g, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_RGBW_fields[5] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_RGBW, r, r, 0),
|
|
||||||
PB_FIELD( 2, UINT32 , REQUIRED, STATIC , OTHER, fx_RGBW, g, r, 0),
|
|
||||||
PB_FIELD( 3, UINT32 , REQUIRED, STATIC , OTHER, fx_RGBW, b, g, 0),
|
|
||||||
PB_FIELD( 4, UINT32 , REQUIRED, STATIC , OTHER, fx_RGBW, w, b, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_ColorType_fields[4] = {
|
|
||||||
PB_ONEOF_FIELD(colorTypes, 1, MESSAGE , ONEOF, STATIC , FIRST, fx_ColorType, rgb, rgb, &fx_RGB_fields),
|
|
||||||
PB_ONEOF_FIELD(colorTypes, 2, MESSAGE , ONEOF, STATIC , UNION, fx_ColorType, rgbw, rgbw, &fx_RGBW_fields),
|
|
||||||
PB_ONEOF_FIELD(colorTypes, 3, FIXED32 , ONEOF, STATIC , UNION, fx_ColorType, color, color, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_Options_fields[5] = {
|
|
||||||
PB_FIELD( 1, BOOL , REQUIRED, STATIC , FIRST, fx_Options, reverse, reverse, 0),
|
|
||||||
PB_FIELD( 2, UENUM , REQUIRED, STATIC , OTHER, fx_Options, fadeRate, reverse, 0),
|
|
||||||
PB_FIELD( 3, BOOL , REQUIRED, STATIC , OTHER, fx_Options, gammaCorrect, fadeRate, 0),
|
|
||||||
PB_FIELD( 4, UENUM , REQUIRED, STATIC , OTHER, fx_Options, size, gammaCorrect, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_init_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_service_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_start_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_stop_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_pause_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_resume_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_strip_off_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_fade_out_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , OPTIONAL, STATIC , FIRST, fx_fade_out_msg, fadeTime, fadeTime, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setMode_msg_fields[3] = {
|
|
||||||
PB_FIELD( 1, UINT32 , OPTIONAL, STATIC , FIRST, fx_setMode_msg, segment, segment, 0),
|
|
||||||
PB_FIELD( 2, UENUM , REQUIRED, STATIC , OTHER, fx_setMode_msg, mode, segment, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setOptions_msg_fields[3] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_setOptions_msg, segment, segment, 0),
|
|
||||||
PB_FIELD( 2, MESSAGE , REQUIRED, STATIC , OTHER, fx_setOptions_msg, options, segment, &fx_Options_fields),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setSpeed_msg_fields[3] = {
|
|
||||||
PB_FIELD( 1, UINT32 , OPTIONAL, STATIC , FIRST, fx_setSpeed_msg, segment, segment, 0),
|
|
||||||
PB_FIELD( 2, UINT32 , REQUIRED, STATIC , OTHER, fx_setSpeed_msg, speed, segment, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_increaseSpeed_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_increaseSpeed_msg, step, step, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_decreaseSpeed_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_decreaseSpeed_msg, step, step, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setColor_msg_fields[3] = {
|
|
||||||
PB_FIELD( 1, UINT32 , OPTIONAL, STATIC , FIRST, fx_setColor_msg, segment, segment, 0),
|
|
||||||
PB_FIELD( 2, MESSAGE , REPEATED, CALLBACK, OTHER, fx_setColor_msg, color, segment, &fx_ColorType_fields),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setBrightness_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_setBrightness_msg, brightness, brightness, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_increaseBrightness_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_increaseBrightness_msg, step, step, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_decreaseBrightness_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_decreaseBrightness_msg, step, step, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setLength_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_setLength_msg, numPixels, numPixels, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_increaseLength_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_increaseLength_msg, step, step, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_decreaseLength_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_decreaseLength_msg, step, step, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_trigger_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setNumSegments_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_setNumSegments_msg, numSegments, numSegments, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setSegment_msg_fields[7] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_setSegment_msg, segment, segment, 0),
|
|
||||||
PB_FIELD( 2, UINT32 , REQUIRED, STATIC , OTHER, fx_setSegment_msg, start, segment, 0),
|
|
||||||
PB_FIELD( 3, UINT32 , REQUIRED, STATIC , OTHER, fx_setSegment_msg, end, start, 0),
|
|
||||||
PB_FIELD( 4, UENUM , REQUIRED, STATIC , OTHER, fx_setSegment_msg, mode, end, 0),
|
|
||||||
PB_FIELD( 5, MESSAGE , REPEATED, CALLBACK, OTHER, fx_setSegment_msg, color, mode, &fx_ColorType_fields),
|
|
||||||
PB_FIELD( 6, MESSAGE , REQUIRED, STATIC , OTHER, fx_setSegment_msg, options, color, &fx_Options_fields),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_resetSegments_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_resetSegmentRuntimes_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_resetSegmentRuntime_msg_fields[2] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_resetSegmentRuntime_msg, segment, segment, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_setPixelColor_msg_fields[3] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_setPixelColor_msg, offset, offset, 0),
|
|
||||||
PB_FIELD( 2, MESSAGE , REQUIRED, STATIC , OTHER, fx_setPixelColor_msg, color, offset, &fx_ColorType_fields),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_copyPixels_msg_fields[4] = {
|
|
||||||
PB_FIELD( 1, UINT32 , REQUIRED, STATIC , FIRST, fx_copyPixels_msg, destination, destination, 0),
|
|
||||||
PB_FIELD( 2, UINT32 , REQUIRED, STATIC , OTHER, fx_copyPixels_msg, source, destination, 0),
|
|
||||||
PB_FIELD( 3, UINT32 , REQUIRED, STATIC , OTHER, fx_copyPixels_msg, count, source, 0),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_show_msg_fields[1] = {
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
const pb_field_t fx_Root_fields[29] = {
|
|
||||||
PB_ONEOF_FIELD(msg, 1, MESSAGE , ONEOF, STATIC , FIRST, fx_Root, init, init, &fx_init_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 2, MESSAGE , ONEOF, STATIC , UNION, fx_Root, start, start, &fx_start_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 3, MESSAGE , ONEOF, STATIC , UNION, fx_Root, stop, stop, &fx_stop_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 4, MESSAGE , ONEOF, STATIC , UNION, fx_Root, pause, pause, &fx_pause_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 5, MESSAGE , ONEOF, STATIC , UNION, fx_Root, resume, resume, &fx_resume_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 6, MESSAGE , ONEOF, STATIC , UNION, fx_Root, strip_off, strip_off, &fx_strip_off_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 7, MESSAGE , ONEOF, STATIC , UNION, fx_Root, fade_out, fade_out, &fx_fade_out_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 8, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setMode, setMode, &fx_setMode_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 9, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setOptions, setOptions, &fx_setOptions_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 10, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setSpeed, setSpeed, &fx_setSpeed_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 11, MESSAGE , ONEOF, STATIC , UNION, fx_Root, increaseSpeed, increaseSpeed, &fx_increaseSpeed_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 12, MESSAGE , ONEOF, STATIC , UNION, fx_Root, decreaseSpeed, decreaseSpeed, &fx_decreaseSpeed_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 13, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setColor, setColor, &fx_setColor_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 14, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setBrightness, setBrightness, &fx_setBrightness_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 15, MESSAGE , ONEOF, STATIC , UNION, fx_Root, increaseBrightness, increaseBrightness, &fx_increaseBrightness_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 16, MESSAGE , ONEOF, STATIC , UNION, fx_Root, decreaseBrightness, decreaseBrightness, &fx_decreaseBrightness_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 17, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setLength, setLength, &fx_setLength_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 18, MESSAGE , ONEOF, STATIC , UNION, fx_Root, increaseLength, increaseLength, &fx_increaseLength_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 19, MESSAGE , ONEOF, STATIC , UNION, fx_Root, decreaseLength, decreaseLength, &fx_decreaseLength_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 20, MESSAGE , ONEOF, STATIC , UNION, fx_Root, trigger, trigger, &fx_trigger_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 21, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setNumSegments, setNumSegments, &fx_setNumSegments_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 22, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setSegment, setSegment, &fx_setSegment_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 23, MESSAGE , ONEOF, STATIC , UNION, fx_Root, resetSegments, resetSegments, &fx_resetSegments_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 24, MESSAGE , ONEOF, STATIC , UNION, fx_Root, resetSegmentRuntimes, resetSegmentRuntimes, &fx_resetSegmentRuntimes_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 25, MESSAGE , ONEOF, STATIC , UNION, fx_Root, resetSegmentRuntime, resetSegmentRuntime, &fx_resetSegmentRuntime_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 26, MESSAGE , ONEOF, STATIC , UNION, fx_Root, setPixelColor, setPixelColor, &fx_setPixelColor_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 27, MESSAGE , ONEOF, STATIC , UNION, fx_Root, copyPixels, copyPixels, &fx_copyPixels_msg_fields),
|
|
||||||
PB_ONEOF_FIELD(msg, 28, MESSAGE , ONEOF, STATIC , UNION, fx_Root, show, show, &fx_show_msg_fields),
|
|
||||||
PB_LAST_FIELD
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Check that field information fits in pb_field_t */
|
|
||||||
#if !defined(PB_FIELD_32BIT)
|
|
||||||
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
|
|
||||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
|
||||||
*
|
|
||||||
* The reason you need to do this is that some of your messages contain tag
|
|
||||||
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
|
|
||||||
* field descriptors.
|
|
||||||
*/
|
|
||||||
PB_STATIC_ASSERT((pb_membersize(fx_ColorType, colorTypes.rgb) < 65536 && pb_membersize(fx_ColorType, colorTypes.rgbw) < 65536 && pb_membersize(fx_setOptions_msg, options) < 65536 && pb_membersize(fx_setSegment_msg, options) < 65536 && pb_membersize(fx_setPixelColor_msg, color) < 65536 && pb_membersize(fx_Root, msg.init) < 65536 && pb_membersize(fx_Root, msg.start) < 65536 && pb_membersize(fx_Root, msg.stop) < 65536 && pb_membersize(fx_Root, msg.pause) < 65536 && pb_membersize(fx_Root, msg.resume) < 65536 && pb_membersize(fx_Root, msg.strip_off) < 65536 && pb_membersize(fx_Root, msg.fade_out) < 65536 && pb_membersize(fx_Root, msg.setMode) < 65536 && pb_membersize(fx_Root, msg.setOptions) < 65536 && pb_membersize(fx_Root, msg.setSpeed) < 65536 && pb_membersize(fx_Root, msg.increaseSpeed) < 65536 && pb_membersize(fx_Root, msg.decreaseSpeed) < 65536 && pb_membersize(fx_Root, msg.setColor) < 65536 && pb_membersize(fx_Root, msg.setBrightness) < 65536 && pb_membersize(fx_Root, msg.increaseBrightness) < 65536 && pb_membersize(fx_Root, msg.decreaseBrightness) < 65536 && pb_membersize(fx_Root, msg.setLength) < 65536 && pb_membersize(fx_Root, msg.increaseLength) < 65536 && pb_membersize(fx_Root, msg.decreaseLength) < 65536 && pb_membersize(fx_Root, msg.trigger) < 65536 && pb_membersize(fx_Root, msg.setNumSegments) < 65536 && pb_membersize(fx_Root, msg.setSegment) < 65536 && pb_membersize(fx_Root, msg.resetSegments) < 65536 && pb_membersize(fx_Root, msg.resetSegmentRuntimes) < 65536 && pb_membersize(fx_Root, msg.resetSegmentRuntime) < 65536 && pb_membersize(fx_Root, msg.setPixelColor) < 65536 && pb_membersize(fx_Root, msg.copyPixels) < 65536 && pb_membersize(fx_Root, msg.show) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_fx_RGB_fx_RGBW_fx_ColorType_fx_Options_fx_init_msg_fx_service_msg_fx_start_msg_fx_stop_msg_fx_pause_msg_fx_resume_msg_fx_strip_off_msg_fx_fade_out_msg_fx_setMode_msg_fx_setOptions_msg_fx_setSpeed_msg_fx_increaseSpeed_msg_fx_decreaseSpeed_msg_fx_setColor_msg_fx_setBrightness_msg_fx_increaseBrightness_msg_fx_decreaseBrightness_msg_fx_setLength_msg_fx_increaseLength_msg_fx_decreaseLength_msg_fx_trigger_msg_fx_setNumSegments_msg_fx_setSegment_msg_fx_resetSegments_msg_fx_resetSegmentRuntimes_msg_fx_resetSegmentRuntime_msg_fx_setPixelColor_msg_fx_copyPixels_msg_fx_show_msg_fx_Root)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
|
|
||||||
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
|
|
||||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
|
||||||
*
|
|
||||||
* The reason you need to do this is that some of your messages contain tag
|
|
||||||
* numbers or field sizes that are larger than what can fit in the default
|
|
||||||
* 8 bit descriptors.
|
|
||||||
*/
|
|
||||||
PB_STATIC_ASSERT((pb_membersize(fx_ColorType, colorTypes.rgb) < 256 && pb_membersize(fx_ColorType, colorTypes.rgbw) < 256 && pb_membersize(fx_setOptions_msg, options) < 256 && pb_membersize(fx_setSegment_msg, options) < 256 && pb_membersize(fx_setPixelColor_msg, color) < 256 && pb_membersize(fx_Root, msg.init) < 256 && pb_membersize(fx_Root, msg.start) < 256 && pb_membersize(fx_Root, msg.stop) < 256 && pb_membersize(fx_Root, msg.pause) < 256 && pb_membersize(fx_Root, msg.resume) < 256 && pb_membersize(fx_Root, msg.strip_off) < 256 && pb_membersize(fx_Root, msg.fade_out) < 256 && pb_membersize(fx_Root, msg.setMode) < 256 && pb_membersize(fx_Root, msg.setOptions) < 256 && pb_membersize(fx_Root, msg.setSpeed) < 256 && pb_membersize(fx_Root, msg.increaseSpeed) < 256 && pb_membersize(fx_Root, msg.decreaseSpeed) < 256 && pb_membersize(fx_Root, msg.setColor) < 256 && pb_membersize(fx_Root, msg.setBrightness) < 256 && pb_membersize(fx_Root, msg.increaseBrightness) < 256 && pb_membersize(fx_Root, msg.decreaseBrightness) < 256 && pb_membersize(fx_Root, msg.setLength) < 256 && pb_membersize(fx_Root, msg.increaseLength) < 256 && pb_membersize(fx_Root, msg.decreaseLength) < 256 && pb_membersize(fx_Root, msg.trigger) < 256 && pb_membersize(fx_Root, msg.setNumSegments) < 256 && pb_membersize(fx_Root, msg.setSegment) < 256 && pb_membersize(fx_Root, msg.resetSegments) < 256 && pb_membersize(fx_Root, msg.resetSegmentRuntimes) < 256 && pb_membersize(fx_Root, msg.resetSegmentRuntime) < 256 && pb_membersize(fx_Root, msg.setPixelColor) < 256 && pb_membersize(fx_Root, msg.copyPixels) < 256 && pb_membersize(fx_Root, msg.show) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_fx_RGB_fx_RGBW_fx_ColorType_fx_Options_fx_init_msg_fx_service_msg_fx_start_msg_fx_stop_msg_fx_pause_msg_fx_resume_msg_fx_strip_off_msg_fx_fade_out_msg_fx_setMode_msg_fx_setOptions_msg_fx_setSpeed_msg_fx_increaseSpeed_msg_fx_decreaseSpeed_msg_fx_setColor_msg_fx_setBrightness_msg_fx_increaseBrightness_msg_fx_decreaseBrightness_msg_fx_setLength_msg_fx_increaseLength_msg_fx_decreaseLength_msg_fx_trigger_msg_fx_setNumSegments_msg_fx_setSegment_msg_fx_resetSegments_msg_fx_resetSegmentRuntimes_msg_fx_resetSegmentRuntime_msg_fx_setPixelColor_msg_fx_copyPixels_msg_fx_show_msg_fx_Root)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* @@protoc_insertion_point(eof) */
|
|
|
@ -1,568 +0,0 @@
|
||||||
/* Automatically generated nanopb header */
|
|
||||||
/* Generated by nanopb-0.3.9.3 at Sun Oct 13 00:30:37 2019. */
|
|
||||||
|
|
||||||
#ifndef PB_FX_FX_PB_H_INCLUDED
|
|
||||||
#define PB_FX_FX_PB_H_INCLUDED
|
|
||||||
#include <pb.h>
|
|
||||||
|
|
||||||
/* @@protoc_insertion_point(includes) */
|
|
||||||
#if PB_PROTO_HEADER_VERSION != 30
|
|
||||||
#error Regenerate this file with the current version of nanopb generator.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Enum definitions */
|
|
||||||
typedef enum _fx_Mode {
|
|
||||||
fx_Mode_FX_MODE_STATIC = 0,
|
|
||||||
fx_Mode_FX_MODE_BLINK = 1,
|
|
||||||
fx_Mode_FX_MODE_BREATH = 2,
|
|
||||||
fx_Mode_FX_MODE_COLOR_WIPE = 3,
|
|
||||||
fx_Mode_FX_MODE_COLOR_WIPE_INV = 4,
|
|
||||||
fx_Mode_FX_MODE_COLOR_WIPE_REV = 5,
|
|
||||||
fx_Mode_FX_MODE_COLOR_WIPE_REV_INV = 6,
|
|
||||||
fx_Mode_FX_MODE_COLOR_WIPE_RANDOM = 7,
|
|
||||||
fx_Mode_FX_MODE_RANDOM_COLOR = 8,
|
|
||||||
fx_Mode_FX_MODE_SINGLE_DYNAMIC = 9,
|
|
||||||
fx_Mode_FX_MODE_MULTI_DYNAMIC = 10,
|
|
||||||
fx_Mode_FX_MODE_RAINBOW = 11,
|
|
||||||
fx_Mode_FX_MODE_RAINBOW_CYCLE = 12,
|
|
||||||
fx_Mode_FX_MODE_SCAN = 13,
|
|
||||||
fx_Mode_FX_MODE_DUAL_SCAN = 14,
|
|
||||||
fx_Mode_FX_MODE_FADE = 15,
|
|
||||||
fx_Mode_FX_MODE_THEATER_CHASE = 16,
|
|
||||||
fx_Mode_FX_MODE_THEATER_CHASE_RAINBOW = 17,
|
|
||||||
fx_Mode_FX_MODE_RUNNING_LIGHTS = 18,
|
|
||||||
fx_Mode_FX_MODE_TWINKLE = 19,
|
|
||||||
fx_Mode_FX_MODE_TWINKLE_RANDOM = 20,
|
|
||||||
fx_Mode_FX_MODE_TWINKLE_FADE = 21,
|
|
||||||
fx_Mode_FX_MODE_TWINKLE_FADE_RANDOM = 22,
|
|
||||||
fx_Mode_FX_MODE_SPARKLE = 23,
|
|
||||||
fx_Mode_FX_MODE_FLASH_SPARKLE = 24,
|
|
||||||
fx_Mode_FX_MODE_HYPER_SPARKLE = 25,
|
|
||||||
fx_Mode_FX_MODE_STROBE = 26,
|
|
||||||
fx_Mode_FX_MODE_STROBE_RAINBOW = 27,
|
|
||||||
fx_Mode_FX_MODE_MULTI_STROBE = 28,
|
|
||||||
fx_Mode_FX_MODE_BLINK_RAINBOW = 29,
|
|
||||||
fx_Mode_FX_MODE_CHASE_WHITE = 30,
|
|
||||||
fx_Mode_FX_MODE_CHASE_COLOR = 31,
|
|
||||||
fx_Mode_FX_MODE_CHASE_RANDOM = 32,
|
|
||||||
fx_Mode_FX_MODE_CHASE_RAINBOW = 33,
|
|
||||||
fx_Mode_FX_MODE_CHASE_FLASH = 34,
|
|
||||||
fx_Mode_FX_MODE_CHASE_FLASH_RANDOM = 35,
|
|
||||||
fx_Mode_FX_MODE_CHASE_RAINBOW_WHITE = 36,
|
|
||||||
fx_Mode_FX_MODE_CHASE_BLACKOUT = 37,
|
|
||||||
fx_Mode_FX_MODE_CHASE_BLACKOUT_RAINBOW = 38,
|
|
||||||
fx_Mode_FX_MODE_COLOR_SWEEP_RANDOM = 39,
|
|
||||||
fx_Mode_FX_MODE_RUNNING_COLOR = 40,
|
|
||||||
fx_Mode_FX_MODE_RUNNING_RED_BLUE = 41,
|
|
||||||
fx_Mode_FX_MODE_RUNNING_RANDOM = 42,
|
|
||||||
fx_Mode_FX_MODE_LARSON_SCANNER = 43,
|
|
||||||
fx_Mode_FX_MODE_COMET = 44,
|
|
||||||
fx_Mode_FX_MODE_FIREWORKS = 45,
|
|
||||||
fx_Mode_FX_MODE_FIREWORKS_RANDOM = 46,
|
|
||||||
fx_Mode_FX_MODE_MERRY_CHRISTMAS = 47,
|
|
||||||
fx_Mode_FX_MODE_FIRE_FLICKER = 48,
|
|
||||||
fx_Mode_FX_MODE_FIRE_FLICKER_SOFT = 49,
|
|
||||||
fx_Mode_FX_MODE_FIRE_FLICKER_INTENSE = 50,
|
|
||||||
fx_Mode_FX_MODE_CIRCUS_COMBUSTUS = 51,
|
|
||||||
fx_Mode_FX_MODE_HALLOWEEN = 52,
|
|
||||||
fx_Mode_FX_MODE_BICOLOR_CHASE = 53,
|
|
||||||
fx_Mode_FX_MODE_TRICOLOR_CHASE = 54,
|
|
||||||
fx_Mode_FX_MODE_ICU = 55,
|
|
||||||
fx_Mode_FX_MODE_CUSTOM_0 = 56,
|
|
||||||
fx_Mode_FX_MODE_CUSTOM_1 = 57,
|
|
||||||
fx_Mode_FX_MODE_CUSTOM_2 = 58,
|
|
||||||
fx_Mode_FX_MODE_CUSTOM_3 = 59
|
|
||||||
} fx_Mode;
|
|
||||||
#define _fx_Mode_MIN fx_Mode_FX_MODE_STATIC
|
|
||||||
#define _fx_Mode_MAX fx_Mode_FX_MODE_CUSTOM_3
|
|
||||||
#define _fx_Mode_ARRAYSIZE ((fx_Mode)(fx_Mode_FX_MODE_CUSTOM_3+1))
|
|
||||||
|
|
||||||
typedef enum _fx_FadeRate {
|
|
||||||
fx_FadeRate_FADE_RATE_XFAST = 1,
|
|
||||||
fx_FadeRate_FADE_RATE_FAST = 2,
|
|
||||||
fx_FadeRate_FADE_RATE_MEDIUM = 3,
|
|
||||||
fx_FadeRate_FADE_RATE_SLOW = 4,
|
|
||||||
fx_FadeRate_FADE_RATE_XSLOW = 5,
|
|
||||||
fx_FadeRate_FADE_RATE_XXSLOW = 6,
|
|
||||||
fx_FadeRate_FADE_RATE_GLACIAL = 7
|
|
||||||
} fx_FadeRate;
|
|
||||||
#define _fx_FadeRate_MIN fx_FadeRate_FADE_RATE_XFAST
|
|
||||||
#define _fx_FadeRate_MAX fx_FadeRate_FADE_RATE_GLACIAL
|
|
||||||
#define _fx_FadeRate_ARRAYSIZE ((fx_FadeRate)(fx_FadeRate_FADE_RATE_GLACIAL+1))
|
|
||||||
|
|
||||||
typedef enum _fx_Size {
|
|
||||||
fx_Size_SIZE_SMALL = 0,
|
|
||||||
fx_Size_SIZE_MEDIUM = 1,
|
|
||||||
fx_Size_SIZE_LARGE = 2,
|
|
||||||
fx_Size_SIZE_XLARGE = 3
|
|
||||||
} fx_Size;
|
|
||||||
#define _fx_Size_MIN fx_Size_SIZE_SMALL
|
|
||||||
#define _fx_Size_MAX fx_Size_SIZE_XLARGE
|
|
||||||
#define _fx_Size_ARRAYSIZE ((fx_Size)(fx_Size_SIZE_XLARGE+1))
|
|
||||||
|
|
||||||
/* Struct definitions */
|
|
||||||
typedef struct _fx_init_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_init_msg) */
|
|
||||||
} fx_init_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_pause_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_pause_msg) */
|
|
||||||
} fx_pause_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_resetSegmentRuntimes_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_resetSegmentRuntimes_msg) */
|
|
||||||
} fx_resetSegmentRuntimes_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_resetSegments_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_resetSegments_msg) */
|
|
||||||
} fx_resetSegments_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_resume_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_resume_msg) */
|
|
||||||
} fx_resume_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_service_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_service_msg) */
|
|
||||||
} fx_service_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_show_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_show_msg) */
|
|
||||||
} fx_show_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_start_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_start_msg) */
|
|
||||||
} fx_start_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_stop_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_stop_msg) */
|
|
||||||
} fx_stop_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_strip_off_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_strip_off_msg) */
|
|
||||||
} fx_strip_off_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_trigger_msg {
|
|
||||||
char dummy_field;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_trigger_msg) */
|
|
||||||
} fx_trigger_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_Options {
|
|
||||||
bool reverse;
|
|
||||||
fx_FadeRate fadeRate;
|
|
||||||
bool gammaCorrect;
|
|
||||||
fx_Size size;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_Options) */
|
|
||||||
} fx_Options;
|
|
||||||
|
|
||||||
typedef struct _fx_RGB {
|
|
||||||
uint32_t r;
|
|
||||||
uint32_t g;
|
|
||||||
uint32_t b;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_RGB) */
|
|
||||||
} fx_RGB;
|
|
||||||
|
|
||||||
typedef struct _fx_RGBW {
|
|
||||||
uint32_t r;
|
|
||||||
uint32_t g;
|
|
||||||
uint32_t b;
|
|
||||||
uint32_t w;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_RGBW) */
|
|
||||||
} fx_RGBW;
|
|
||||||
|
|
||||||
typedef struct _fx_copyPixels_msg {
|
|
||||||
uint32_t destination;
|
|
||||||
uint32_t source;
|
|
||||||
uint32_t count;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_copyPixels_msg) */
|
|
||||||
} fx_copyPixels_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_decreaseBrightness_msg {
|
|
||||||
uint32_t step;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_decreaseBrightness_msg) */
|
|
||||||
} fx_decreaseBrightness_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_decreaseLength_msg {
|
|
||||||
uint32_t step;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_decreaseLength_msg) */
|
|
||||||
} fx_decreaseLength_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_decreaseSpeed_msg {
|
|
||||||
uint32_t step;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_decreaseSpeed_msg) */
|
|
||||||
} fx_decreaseSpeed_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_fade_out_msg {
|
|
||||||
bool has_fadeTime;
|
|
||||||
uint32_t fadeTime;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_fade_out_msg) */
|
|
||||||
} fx_fade_out_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_increaseBrightness_msg {
|
|
||||||
uint32_t step;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_increaseBrightness_msg) */
|
|
||||||
} fx_increaseBrightness_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_increaseLength_msg {
|
|
||||||
uint32_t step;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_increaseLength_msg) */
|
|
||||||
} fx_increaseLength_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_increaseSpeed_msg {
|
|
||||||
uint32_t step;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_increaseSpeed_msg) */
|
|
||||||
} fx_increaseSpeed_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_resetSegmentRuntime_msg {
|
|
||||||
uint32_t segment;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_resetSegmentRuntime_msg) */
|
|
||||||
} fx_resetSegmentRuntime_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setBrightness_msg {
|
|
||||||
uint32_t brightness;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setBrightness_msg) */
|
|
||||||
} fx_setBrightness_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setColor_msg {
|
|
||||||
bool has_segment;
|
|
||||||
uint32_t segment;
|
|
||||||
pb_callback_t color;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setColor_msg) */
|
|
||||||
} fx_setColor_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setLength_msg {
|
|
||||||
uint32_t numPixels;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setLength_msg) */
|
|
||||||
} fx_setLength_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setMode_msg {
|
|
||||||
bool has_segment;
|
|
||||||
uint32_t segment;
|
|
||||||
fx_Mode mode;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setMode_msg) */
|
|
||||||
} fx_setMode_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setNumSegments_msg {
|
|
||||||
uint32_t numSegments;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setNumSegments_msg) */
|
|
||||||
} fx_setNumSegments_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setSpeed_msg {
|
|
||||||
bool has_segment;
|
|
||||||
uint32_t segment;
|
|
||||||
uint32_t speed;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setSpeed_msg) */
|
|
||||||
} fx_setSpeed_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_ColorType {
|
|
||||||
pb_size_t which_colorTypes;
|
|
||||||
union {
|
|
||||||
fx_RGB rgb;
|
|
||||||
fx_RGBW rgbw;
|
|
||||||
uint32_t color;
|
|
||||||
} colorTypes;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_ColorType) */
|
|
||||||
} fx_ColorType;
|
|
||||||
|
|
||||||
typedef struct _fx_setOptions_msg {
|
|
||||||
uint32_t segment;
|
|
||||||
fx_Options options;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setOptions_msg) */
|
|
||||||
} fx_setOptions_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setSegment_msg {
|
|
||||||
uint32_t segment;
|
|
||||||
uint32_t start;
|
|
||||||
uint32_t end;
|
|
||||||
fx_Mode mode;
|
|
||||||
pb_callback_t color;
|
|
||||||
fx_Options options;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setSegment_msg) */
|
|
||||||
} fx_setSegment_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_setPixelColor_msg {
|
|
||||||
uint32_t offset;
|
|
||||||
fx_ColorType color;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_setPixelColor_msg) */
|
|
||||||
} fx_setPixelColor_msg;
|
|
||||||
|
|
||||||
typedef struct _fx_Root {
|
|
||||||
pb_size_t which_msg;
|
|
||||||
union {
|
|
||||||
fx_init_msg init;
|
|
||||||
fx_start_msg start;
|
|
||||||
fx_stop_msg stop;
|
|
||||||
fx_pause_msg pause;
|
|
||||||
fx_resume_msg resume;
|
|
||||||
fx_strip_off_msg strip_off;
|
|
||||||
fx_fade_out_msg fade_out;
|
|
||||||
fx_setMode_msg setMode;
|
|
||||||
fx_setOptions_msg setOptions;
|
|
||||||
fx_setSpeed_msg setSpeed;
|
|
||||||
fx_increaseSpeed_msg increaseSpeed;
|
|
||||||
fx_decreaseSpeed_msg decreaseSpeed;
|
|
||||||
fx_setColor_msg setColor;
|
|
||||||
fx_setBrightness_msg setBrightness;
|
|
||||||
fx_increaseBrightness_msg increaseBrightness;
|
|
||||||
fx_decreaseBrightness_msg decreaseBrightness;
|
|
||||||
fx_setLength_msg setLength;
|
|
||||||
fx_increaseLength_msg increaseLength;
|
|
||||||
fx_decreaseLength_msg decreaseLength;
|
|
||||||
fx_trigger_msg trigger;
|
|
||||||
fx_setNumSegments_msg setNumSegments;
|
|
||||||
fx_setSegment_msg setSegment;
|
|
||||||
fx_resetSegments_msg resetSegments;
|
|
||||||
fx_resetSegmentRuntimes_msg resetSegmentRuntimes;
|
|
||||||
fx_resetSegmentRuntime_msg resetSegmentRuntime;
|
|
||||||
fx_setPixelColor_msg setPixelColor;
|
|
||||||
fx_copyPixels_msg copyPixels;
|
|
||||||
fx_show_msg show;
|
|
||||||
} msg;
|
|
||||||
/* @@protoc_insertion_point(struct:fx_Root) */
|
|
||||||
} fx_Root;
|
|
||||||
|
|
||||||
/* Default values for struct fields */
|
|
||||||
|
|
||||||
/* Initializer values for message structs */
|
|
||||||
#define fx_RGB_init_default {0, 0, 0}
|
|
||||||
#define fx_RGBW_init_default {0, 0, 0, 0}
|
|
||||||
#define fx_ColorType_init_default {0, {fx_RGB_init_default}}
|
|
||||||
#define fx_Options_init_default {0, _fx_FadeRate_MIN, 0, _fx_Size_MIN}
|
|
||||||
#define fx_init_msg_init_default {0}
|
|
||||||
#define fx_service_msg_init_default {0}
|
|
||||||
#define fx_start_msg_init_default {0}
|
|
||||||
#define fx_stop_msg_init_default {0}
|
|
||||||
#define fx_pause_msg_init_default {0}
|
|
||||||
#define fx_resume_msg_init_default {0}
|
|
||||||
#define fx_strip_off_msg_init_default {0}
|
|
||||||
#define fx_fade_out_msg_init_default {false, 0}
|
|
||||||
#define fx_setMode_msg_init_default {false, 0, _fx_Mode_MIN}
|
|
||||||
#define fx_setOptions_msg_init_default {0, fx_Options_init_default}
|
|
||||||
#define fx_setSpeed_msg_init_default {false, 0, 0}
|
|
||||||
#define fx_increaseSpeed_msg_init_default {0}
|
|
||||||
#define fx_decreaseSpeed_msg_init_default {0}
|
|
||||||
#define fx_setColor_msg_init_default {false, 0, {{NULL}, NULL}}
|
|
||||||
#define fx_setBrightness_msg_init_default {0}
|
|
||||||
#define fx_increaseBrightness_msg_init_default {0}
|
|
||||||
#define fx_decreaseBrightness_msg_init_default {0}
|
|
||||||
#define fx_setLength_msg_init_default {0}
|
|
||||||
#define fx_increaseLength_msg_init_default {0}
|
|
||||||
#define fx_decreaseLength_msg_init_default {0}
|
|
||||||
#define fx_trigger_msg_init_default {0}
|
|
||||||
#define fx_setNumSegments_msg_init_default {0}
|
|
||||||
#define fx_setSegment_msg_init_default {0, 0, 0, _fx_Mode_MIN, {{NULL}, NULL}, fx_Options_init_default}
|
|
||||||
#define fx_resetSegments_msg_init_default {0}
|
|
||||||
#define fx_resetSegmentRuntimes_msg_init_default {0}
|
|
||||||
#define fx_resetSegmentRuntime_msg_init_default {0}
|
|
||||||
#define fx_setPixelColor_msg_init_default {0, fx_ColorType_init_default}
|
|
||||||
#define fx_copyPixels_msg_init_default {0, 0, 0}
|
|
||||||
#define fx_show_msg_init_default {0}
|
|
||||||
#define fx_Root_init_default {0, {fx_init_msg_init_default}}
|
|
||||||
#define fx_RGB_init_zero {0, 0, 0}
|
|
||||||
#define fx_RGBW_init_zero {0, 0, 0, 0}
|
|
||||||
#define fx_ColorType_init_zero {0, {fx_RGB_init_zero}}
|
|
||||||
#define fx_Options_init_zero {0, _fx_FadeRate_MIN, 0, _fx_Size_MIN}
|
|
||||||
#define fx_init_msg_init_zero {0}
|
|
||||||
#define fx_service_msg_init_zero {0}
|
|
||||||
#define fx_start_msg_init_zero {0}
|
|
||||||
#define fx_stop_msg_init_zero {0}
|
|
||||||
#define fx_pause_msg_init_zero {0}
|
|
||||||
#define fx_resume_msg_init_zero {0}
|
|
||||||
#define fx_strip_off_msg_init_zero {0}
|
|
||||||
#define fx_fade_out_msg_init_zero {false, 0}
|
|
||||||
#define fx_setMode_msg_init_zero {false, 0, _fx_Mode_MIN}
|
|
||||||
#define fx_setOptions_msg_init_zero {0, fx_Options_init_zero}
|
|
||||||
#define fx_setSpeed_msg_init_zero {false, 0, 0}
|
|
||||||
#define fx_increaseSpeed_msg_init_zero {0}
|
|
||||||
#define fx_decreaseSpeed_msg_init_zero {0}
|
|
||||||
#define fx_setColor_msg_init_zero {false, 0, {{NULL}, NULL}}
|
|
||||||
#define fx_setBrightness_msg_init_zero {0}
|
|
||||||
#define fx_increaseBrightness_msg_init_zero {0}
|
|
||||||
#define fx_decreaseBrightness_msg_init_zero {0}
|
|
||||||
#define fx_setLength_msg_init_zero {0}
|
|
||||||
#define fx_increaseLength_msg_init_zero {0}
|
|
||||||
#define fx_decreaseLength_msg_init_zero {0}
|
|
||||||
#define fx_trigger_msg_init_zero {0}
|
|
||||||
#define fx_setNumSegments_msg_init_zero {0}
|
|
||||||
#define fx_setSegment_msg_init_zero {0, 0, 0, _fx_Mode_MIN, {{NULL}, NULL}, fx_Options_init_zero}
|
|
||||||
#define fx_resetSegments_msg_init_zero {0}
|
|
||||||
#define fx_resetSegmentRuntimes_msg_init_zero {0}
|
|
||||||
#define fx_resetSegmentRuntime_msg_init_zero {0}
|
|
||||||
#define fx_setPixelColor_msg_init_zero {0, fx_ColorType_init_zero}
|
|
||||||
#define fx_copyPixels_msg_init_zero {0, 0, 0}
|
|
||||||
#define fx_show_msg_init_zero {0}
|
|
||||||
#define fx_Root_init_zero {0, {fx_init_msg_init_zero}}
|
|
||||||
|
|
||||||
/* Field tags (for use in manual encoding/decoding) */
|
|
||||||
#define fx_Options_reverse_tag 1
|
|
||||||
#define fx_Options_fadeRate_tag 2
|
|
||||||
#define fx_Options_gammaCorrect_tag 3
|
|
||||||
#define fx_Options_size_tag 4
|
|
||||||
#define fx_RGB_r_tag 1
|
|
||||||
#define fx_RGB_g_tag 2
|
|
||||||
#define fx_RGB_b_tag 3
|
|
||||||
#define fx_RGBW_r_tag 1
|
|
||||||
#define fx_RGBW_g_tag 2
|
|
||||||
#define fx_RGBW_b_tag 3
|
|
||||||
#define fx_RGBW_w_tag 4
|
|
||||||
#define fx_copyPixels_msg_destination_tag 1
|
|
||||||
#define fx_copyPixels_msg_source_tag 2
|
|
||||||
#define fx_copyPixels_msg_count_tag 3
|
|
||||||
#define fx_decreaseBrightness_msg_step_tag 1
|
|
||||||
#define fx_decreaseLength_msg_step_tag 1
|
|
||||||
#define fx_decreaseSpeed_msg_step_tag 1
|
|
||||||
#define fx_fade_out_msg_fadeTime_tag 1
|
|
||||||
#define fx_increaseBrightness_msg_step_tag 1
|
|
||||||
#define fx_increaseLength_msg_step_tag 1
|
|
||||||
#define fx_increaseSpeed_msg_step_tag 1
|
|
||||||
#define fx_resetSegmentRuntime_msg_segment_tag 1
|
|
||||||
#define fx_setBrightness_msg_brightness_tag 1
|
|
||||||
#define fx_setColor_msg_segment_tag 1
|
|
||||||
#define fx_setColor_msg_color_tag 2
|
|
||||||
#define fx_setLength_msg_numPixels_tag 1
|
|
||||||
#define fx_setMode_msg_segment_tag 1
|
|
||||||
#define fx_setMode_msg_mode_tag 2
|
|
||||||
#define fx_setNumSegments_msg_numSegments_tag 1
|
|
||||||
#define fx_setSpeed_msg_segment_tag 1
|
|
||||||
#define fx_setSpeed_msg_speed_tag 2
|
|
||||||
#define fx_ColorType_rgb_tag 1
|
|
||||||
#define fx_ColorType_rgbw_tag 2
|
|
||||||
#define fx_ColorType_color_tag 3
|
|
||||||
#define fx_setOptions_msg_segment_tag 1
|
|
||||||
#define fx_setOptions_msg_options_tag 2
|
|
||||||
#define fx_setSegment_msg_segment_tag 1
|
|
||||||
#define fx_setSegment_msg_start_tag 2
|
|
||||||
#define fx_setSegment_msg_end_tag 3
|
|
||||||
#define fx_setSegment_msg_mode_tag 4
|
|
||||||
#define fx_setSegment_msg_color_tag 5
|
|
||||||
#define fx_setSegment_msg_options_tag 6
|
|
||||||
#define fx_setPixelColor_msg_offset_tag 1
|
|
||||||
#define fx_setPixelColor_msg_color_tag 2
|
|
||||||
#define fx_Root_init_tag 1
|
|
||||||
#define fx_Root_start_tag 2
|
|
||||||
#define fx_Root_stop_tag 3
|
|
||||||
#define fx_Root_pause_tag 4
|
|
||||||
#define fx_Root_resume_tag 5
|
|
||||||
#define fx_Root_strip_off_tag 6
|
|
||||||
#define fx_Root_fade_out_tag 7
|
|
||||||
#define fx_Root_setMode_tag 8
|
|
||||||
#define fx_Root_setOptions_tag 9
|
|
||||||
#define fx_Root_setSpeed_tag 10
|
|
||||||
#define fx_Root_increaseSpeed_tag 11
|
|
||||||
#define fx_Root_decreaseSpeed_tag 12
|
|
||||||
#define fx_Root_setColor_tag 13
|
|
||||||
#define fx_Root_setBrightness_tag 14
|
|
||||||
#define fx_Root_increaseBrightness_tag 15
|
|
||||||
#define fx_Root_decreaseBrightness_tag 16
|
|
||||||
#define fx_Root_setLength_tag 17
|
|
||||||
#define fx_Root_increaseLength_tag 18
|
|
||||||
#define fx_Root_decreaseLength_tag 19
|
|
||||||
#define fx_Root_trigger_tag 20
|
|
||||||
#define fx_Root_setNumSegments_tag 21
|
|
||||||
#define fx_Root_setSegment_tag 22
|
|
||||||
#define fx_Root_resetSegments_tag 23
|
|
||||||
#define fx_Root_resetSegmentRuntimes_tag 24
|
|
||||||
#define fx_Root_resetSegmentRuntime_tag 25
|
|
||||||
#define fx_Root_setPixelColor_tag 26
|
|
||||||
#define fx_Root_copyPixels_tag 27
|
|
||||||
#define fx_Root_show_tag 28
|
|
||||||
|
|
||||||
/* Struct field encoding specification for nanopb */
|
|
||||||
extern const pb_field_t fx_RGB_fields[4];
|
|
||||||
extern const pb_field_t fx_RGBW_fields[5];
|
|
||||||
extern const pb_field_t fx_ColorType_fields[4];
|
|
||||||
extern const pb_field_t fx_Options_fields[5];
|
|
||||||
extern const pb_field_t fx_init_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_service_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_start_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_stop_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_pause_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_resume_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_strip_off_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_fade_out_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_setMode_msg_fields[3];
|
|
||||||
extern const pb_field_t fx_setOptions_msg_fields[3];
|
|
||||||
extern const pb_field_t fx_setSpeed_msg_fields[3];
|
|
||||||
extern const pb_field_t fx_increaseSpeed_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_decreaseSpeed_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_setColor_msg_fields[3];
|
|
||||||
extern const pb_field_t fx_setBrightness_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_increaseBrightness_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_decreaseBrightness_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_setLength_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_increaseLength_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_decreaseLength_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_trigger_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_setNumSegments_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_setSegment_msg_fields[7];
|
|
||||||
extern const pb_field_t fx_resetSegments_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_resetSegmentRuntimes_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_resetSegmentRuntime_msg_fields[2];
|
|
||||||
extern const pb_field_t fx_setPixelColor_msg_fields[3];
|
|
||||||
extern const pb_field_t fx_copyPixels_msg_fields[4];
|
|
||||||
extern const pb_field_t fx_show_msg_fields[1];
|
|
||||||
extern const pb_field_t fx_Root_fields[29];
|
|
||||||
|
|
||||||
/* Maximum encoded size of messages (where known) */
|
|
||||||
#define fx_RGB_size 18
|
|
||||||
#define fx_RGBW_size 24
|
|
||||||
#define fx_ColorType_size 26
|
|
||||||
#define fx_Options_size 8
|
|
||||||
#define fx_init_msg_size 0
|
|
||||||
#define fx_service_msg_size 0
|
|
||||||
#define fx_start_msg_size 0
|
|
||||||
#define fx_stop_msg_size 0
|
|
||||||
#define fx_pause_msg_size 0
|
|
||||||
#define fx_resume_msg_size 0
|
|
||||||
#define fx_strip_off_msg_size 0
|
|
||||||
#define fx_fade_out_msg_size 6
|
|
||||||
#define fx_setMode_msg_size 8
|
|
||||||
#define fx_setOptions_msg_size 16
|
|
||||||
#define fx_setSpeed_msg_size 12
|
|
||||||
#define fx_increaseSpeed_msg_size 6
|
|
||||||
#define fx_decreaseSpeed_msg_size 6
|
|
||||||
/* fx_setColor_msg_size depends on runtime parameters */
|
|
||||||
#define fx_setBrightness_msg_size 6
|
|
||||||
#define fx_increaseBrightness_msg_size 6
|
|
||||||
#define fx_decreaseBrightness_msg_size 6
|
|
||||||
#define fx_setLength_msg_size 6
|
|
||||||
#define fx_increaseLength_msg_size 6
|
|
||||||
#define fx_decreaseLength_msg_size 6
|
|
||||||
#define fx_trigger_msg_size 0
|
|
||||||
#define fx_setNumSegments_msg_size 6
|
|
||||||
/* fx_setSegment_msg_size depends on runtime parameters */
|
|
||||||
#define fx_resetSegments_msg_size 0
|
|
||||||
#define fx_resetSegmentRuntimes_msg_size 0
|
|
||||||
#define fx_resetSegmentRuntime_msg_size 6
|
|
||||||
#define fx_setPixelColor_msg_size 34
|
|
||||||
#define fx_copyPixels_msg_size 18
|
|
||||||
#define fx_show_msg_size 0
|
|
||||||
/* fx_Root_size depends on runtime parameters */
|
|
||||||
|
|
||||||
/* Message IDs (where set with "msgid" option) */
|
|
||||||
#ifdef PB_MSGID
|
|
||||||
|
|
||||||
#define FX_MESSAGES \
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
} /* extern "C" */
|
|
||||||
#endif
|
|
||||||
/* @@protoc_insertion_point(eof) */
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in a new issue