![]() |
RSeries astromech firmware
|
#include <WProgram.h>#include <avr/pgmspace.h>#include <Wire.h>
Include dependency graph for ReelTwo.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | USE_LEDLIB 1 |
| #define | I2C_MAGIC_PANEL 0x14 |
| #define | JEDI_BAUD_RATE 2400 |
| #define | UNUSED_ARG(arg) (void)arg; |
| #define | REELTWO_AVR |
| #define | DEBUG_SERIAL Serial |
| #define | FALL_THROUGH [[fallthrough]]; |
| #define | IRAM_ATTR /* not used */ |
| #define | TEENSY_PROP_NEOPIXEL_SETUP() { begin(); } |
| #define | TEENSY_PROP_NEOPIXEL_BEGIN() |
| #define | TEENSY_PROP_NEOPIXEL_END() |
| #define | UNUSED(x) (void)(x) |
| #define | DEBUG_SERIAL_READY() |
| #define | DEBUG_PRINTLN(s) while (0) |
| #define | DEBUG_PRINT(s) while (0) |
| #define | DEBUG_PRINTF(...) while (0) |
| #define | DEBUG_PRINTLN_HEX(s) while (0) |
| #define | DEBUG_PRINT_HEX(s) while (0) |
| #define | DEBUG_FLUSH() while (0) |
| #define | TYPETOSTR(T) #T |
| #define | JEDI_SERIAL_READY() |
| #define | SizeOfArray(arr) (sizeof(arr)/sizeof(arr[0])) |
| #define | DEFAULT_BAUD_RATE 57600 |
| #define | _REELTWO_READY_ |
| #define | REELTWO_READY() _REELTWO_READY_ |
| #define | SMQMESSAGE(topic, handler) |
| #define | FSTR(str) (str)/*[](){static const char _str[] PROGMEM = str; return (PROGMEMString)_str;}()*/ |
| #define | FORCE_CT_EVAL(func) [](){constexpr auto ___expr = func; return ___expr;}() |
| #define | SMQID_CONST(str) WSID16(str) /*WSID32(str)*/ |
| #define | MSGID_CONST(str) WSID16(str) |
| #define | STRID_CONST(str) WSID32(str) |
| #define | SMQID(str) FORCE_CT_EVAL(SMQID_CONST(str)) |
| #define | MSGID(str) FORCE_CT_EVAL(MSGID_CONST(str)) |
| #define | STRID(str) FORCE_CT_EVAL(STRID_CONST(str)) |
| #define | casePString(str) case STRID_CONST(str): return F(str) |
| #define | ReadCompileTimeCounter(...) HighestCompileTimeEval<__COUNTER__, void>(__VA_ARGS__(), CompileTimeCounterTemplateInt<CompileTimeCounterLimit>()) |
| ReadCompileTimeCounter. More... | |
| #define | IncrementCompileTimeCounter(TagID) |
| IncrementCompileTimeCounter. More... | |
| #define | STEALTHI2C 0 |
Functions | |
| constexpr uint16_t | crc16_impl (const char *p, size_t len, uint16_t crc) |
| constexpr uint32_t | crc32_impl (const char *p, size_t len, uint32_t crc) |
| constexpr uint16_t | crc16 (const char *data, size_t length) |
| constexpr uint32_t | crc32 (const char *data, size_t length) |
| constexpr size_t | strlen_c (const char *str) |
| constexpr uint16_t | WSID16 (const char *str) |
| constexpr uint32_t | WSID32 (const char *str) |
| template<byte i2cAddress = STEALTHI2C> | |
| void | StealthCommand (String cmd) |
| template<byte i2cAddress = STEALTHI2C> | |
| void | StealthCommand (const char *cmd) |
| void | PrintReelTwoInfo (Print &out, const char *desc) |
Variables | |
| const typedef __FlashStringHelper * | PROGMEMString |
| constexpr uint16_t | _crc16_table [] |
| constexpr uint32_t | _crc32_table [] |
| #define _REELTWO_READY_ |
| #define casePString | ( | str | ) | case STRID_CONST(str): return F(str) |
| #define DEBUG_FLUSH | ( | ) | while (0) |
| #define DEBUG_PRINT | ( | s | ) | while (0) |
| #define DEBUG_PRINT_HEX | ( | s | ) | while (0) |
| #define DEBUG_PRINTF | ( | ... | ) | while (0) |
| #define DEBUG_PRINTLN | ( | s | ) | while (0) |
| #define DEBUG_PRINTLN_HEX | ( | s | ) | while (0) |
| #define DEBUG_SERIAL Serial |
| #define DEBUG_SERIAL_READY | ( | ) |
| #define DEFAULT_BAUD_RATE 57600 |
| #define FALL_THROUGH [[fallthrough]]; |
| #define FORCE_CT_EVAL | ( | func | ) | [](){constexpr auto ___expr = func; return ___expr;}() |
| #define FSTR | ( | str | ) | (str)/*[](){static const char _str[] PROGMEM = str; return (PROGMEMString)_str;}()*/ |
| #define I2C_MAGIC_PANEL 0x14 |
| #define IncrementCompileTimeCounter | ( | TagID | ) |
IncrementCompileTimeCounter.
Increment a compile time counter
| #define IRAM_ATTR /* not used */ |
| #define JEDI_BAUD_RATE 2400 |
| #define JEDI_SERIAL_READY | ( | ) |
| #define MSGID | ( | str | ) | FORCE_CT_EVAL(MSGID_CONST(str)) |
| #define MSGID_CONST | ( | str | ) | WSID16(str) |
| #define ReadCompileTimeCounter | ( | ... | ) | HighestCompileTimeEval<__COUNTER__, void>(__VA_ARGS__(), CompileTimeCounterTemplateInt<CompileTimeCounterLimit>()) |
ReadCompileTimeCounter.
Read current value of a compile time counter
| #define REELTWO_AVR |
| #define REELTWO_READY | ( | ) | _REELTWO_READY_ |
| #define SizeOfArray | ( | arr | ) | (sizeof(arr)/sizeof(arr[0])) |
| #define SMQID | ( | str | ) | FORCE_CT_EVAL(SMQID_CONST(str)) |
| #define SMQMESSAGE | ( | topic, | |
| handler | |||
| ) |
| #define STEALTHI2C 0 |
| #define STRID | ( | str | ) | FORCE_CT_EVAL(STRID_CONST(str)) |
| #define STRID_CONST | ( | str | ) | WSID32(str) |
| #define TEENSY_PROP_NEOPIXEL_BEGIN | ( | ) |
| #define TEENSY_PROP_NEOPIXEL_END | ( | ) |
| #define TEENSY_PROP_NEOPIXEL_SETUP | ( | ) | { begin(); } |
| #define TYPETOSTR | ( | T | ) | #T |
| #define UNUSED | ( | x | ) | (void)(x) |
| #define UNUSED_ARG | ( | arg | ) | (void)arg; |
| #define USE_LEDLIB 1 |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inline |
| void StealthCommand | ( | const char * | cmd | ) |
| void StealthCommand | ( | String | cmd | ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| const typedef __FlashStringHelper* PROGMEMString |