Translation Unit: leds_autoprog.h

An annotated version of the translation unit with minimal whitespace. Indentation is according to the depth of the #include stack. Line numbers are linked to the original source code.

Highlighted filenames take you forward to the next occasion in the include graph of the file being pre-processed, in this case: leds_autoprog.h

Return to Index

# Starting FILE: leds_autoprog.h
#  Holding FILE: leds_autoprog.h
.# Starting FILE: MobaLedLib.h
..[    1204]: inline bool Inp_Changed_or_InitOff(uint8_t Inp)
..[    1206]: {
..[    1207]: return Inp == 0b00000001 || Inp == 0b00000010 || Inp == 0b00000110;
..[    1208]: }
..[    1217]: inline uint8_t Invert_Inp(uint8_t Inp)
..[    1219]: {
..[    1220]: return Inp ^ 0b00000011;
..[    1221]: }
..[    1224]: inline bool Inp_Is_On(uint8_t Inp)
..[    1226]: {
..[    1227]: return Inp == 0b00000011 || Inp == 0b00000001;
..[    1228]: }
..[    1231]: inline bool Inp_Is_TurnedOff_or_InitOff(uint8_t Inp)
..[    1233]: {
..[    1234]: return Inp == 0b00000010 || Inp == 0b00000110 ;
..[    1235]: }
..[    1238]: inline bool Inp_Changed(uint8_t Inp)
..[    1240]: {
..[    1241]: return Inp == 0b00000001 || Inp == 0b00000010;
..[    1242]: }
..[    1268]: extern uint8_t Darkness;
..[    1269]: extern DayState_E DayState;
..[    1271]: extern uint8_t TestMode;
..[    1301]: class MobaLedLib_C
..[    1303]: {
..[    1304]: public:
..[    1316]: MobaLedLib_C(struct CRGB* _leds, uint16_t Num_Leds, const uint8_t Config[], uint8_t RAM[], uint16_t RamSize);
..[    1322]: void Update();
..[    1323]: void Set_Input(uint8_t channel, uint8_t On);
..[    1324]: int8_t Get_Input(uint8_t channel);
..[    1325]: void Copy_Bits_to_InpStructArray(uint8_t *Src, uint8_t ByteCnt, uint8_t InpStructArrayNr);
..[    1326]: void Print_Config();
..[    1328]: public:
..[    1329]: uint8_t Trigger20fps;
..[    1330]: CRGB* leds;
..[    1331]: uint16_t Num_Leds;
..[    1333]: private:
..[    1334]: const uint8_t *cp;
..[    1335]: const uint8_t *Config;
..[    1336]: bool Initialize;
..[    1337]: uint8_t *RAM;
..[    1338]: uint8_t Last_20;
..[    1339]: uint8_t TriggerCnt;
..[    1340]: uint8_t *rp;
..[    1341]: uint32_t t;
..[    1343]: uint16_t t4w;
..[    1344]: uint8_t t10;
..[    1346]: TV_Dat_T TV_Dat[2];
..[    1347]: uint8_t InpStructArray[64];
..[    1348]: HSV_T *HSV_p;
..[    1349]: ControlVar_t *ActualVar_p;
..[    1353]: ControlVar_t TempVar;
..[    1354]: uint8_t GlobalVar_Cnt;
..[    1355]: Sound_Dat_t *Sound_Dat;
..[    1375]: uint8_t *Get_LEDPtr(uint8_t &cnt);
..[    1376]: uint8_t Is_Room_On(CRGB *lp, uint8_t RawNr);
..[    1377]: void Update_TV_or_Chimney(uint8_t TVNr, CRGB *lp, uint8_t Room_Typ);
..[    1378]: uint8_t Get_RawNr(uint8_t Room_Typ);
..[    1379]: void Update_Gas_Light( uint8_t Room_Typ, CRGB *lp);
..[    1380]: void Update_Neon_Light(uint8_t Room_Typ, CRGB *lp);
..[    1381]: void Update_Candle(uint8_t Room_Typ, CRGB *lp);
..[    1382]: void Proc_Set_CandleTab();
..[    1383]: void TurnOnRoom(CRGB* lp, uint8_t Room_Typ);
..[    1384]: void TurnOffRoom(CRGB* lp, uint8_t RawNr, uint8_t Room_Typ);
..[    1385]: void Set_Default_TV_Dat_p();
..[    1386]: void Update_TV_Data();
..[    1387]: void Random_Const_Light(CRGB *lp, uint8_t TVNr);
..[    1388]: void Enable_Light_or_TV(CRGB *lp, uint8_t TVNr);
..[    1389]: void Enable_Chimney(CRGB *lp);
..[    1390]: void Enable_Light_or_Chimney(CRGB *lp);
..[    1391]: void Enable_Light_TV_or_Chimney(CRGB *lp, uint8_t TVNr);
..[    1392]: void Set_Timer4Random(uint16_t Timer, TimerData16_T *dp, uint8_t P_MinTime);
..[    1393]: void Set_Dest_RandMux(uint8_t Act, uint8_t Mode);
..[    1394]: void Inp_Processed();
..[    1395]: void CalcSwitchVal(Schedule_T *dp);
..[    1396]: uint8_t Is_Pattern(uint8_t Type);
..[    1397]: void Print_Comment(uint8_t Type);
..[    1398]: void Int_Update(uint32_t Time);
..[    1399]: void Inc_cp(uint8_t Type);
..[    1400]: uint8_t Find_Next_Priv_InpChannel(uint8_t Channel, int8_t Direction);
..[    1404]: void Setup_Test_Buttons();
..[    1405]: void Set_one_Test_Outp(uint8_t Nr, CRGB* &p);
..[    1406]: void Set_Test_Outp(uint8_t &Ch);
..[    1407]: void Speed_Test();
..[    1408]: void Proc_Key_Test(uint8_t key);
..[    1409]: void Proc_Test_Buttons();
..[    1412]: void Proc_Const();
..[    1413]: void Proc_AnalogPattern(uint8_t TimeCnt, bool AnalogMode);
..[    1414]: void Proc_House();
..[    1415]: void Proc_Fire();
..[    1419]: void Proc_Set_TV_Tab();
..[    1420]: void Proc_Set_Def_Neon();
..[    1421]: void Proc_Logic();
..[    1422]: void Proc_New_HSV_Group();
..[    1423]: void Proc_New_Local_Var();
..[    1424]: void Proc_Use_GlobalVar();
..[    1429]: void Proc_InCh_to_TmpVar(uint8_t Start);
..[    1430]: void Proc_Bin_InCh_to_TmpVar(uint8_t Start);
..[    1432]: void Proc_Random();
..[    1433]: void Proc_RandMux();
..[    1434]: void Proc_Welding(uint8_t withbreaks);
..[    1435]: void Proc_CopyLED();
..[    1436]: void Proc_Schedule();
..[    1437]: void Proc_Counter();
..[    1439]: void IncCP_House();
..[    1440]: void IncCP_Const() { cp += 5 + ADD_WORD_OFFSET; }
..[    1441]: void IncCP_Fire() { cp += 4 + ADD_WORD_OFFSET; }
..[    1452]: void IncCP_Set_TV_Tab();
..[    1453]: void IncCP_Set_Def_Neon();
..[    1454]: void IncCP_Pattern(uint8_t TimeCnt);
..[    1455]: void IncCP_Logic();
..[    1456]: void IncCP_New_HSV_Group() { }
..[    1457]: void IncCP_New_Local_Var() { }
..[    1458]: void IncCP_Use_GlobalVar() { cp++; }
..[    1459]: void IncCP_InCh_to_X_Var() { cp+=2; }
..[    1460]: void IncCP_Random() { cp += EP_RANDOM_INCREMENT; }
..[    1461]: void IncCP_RandMux() { cp += EP_RANDMUX_INCREMENT; }
..[    1462]: void IncCP_Welding() { cp += EP_WELDING_INCREMENT; }
..[    1463]: void IncCP_CopyLED() { cp += EP_COPYLED_INCREMENT; }
..[    1464]: void IncCP_Schedule() { cp += EP_SCHEDULE_INCREMENT; }
..[    1465]: void IncCP_Counter();
..[    1467]: uint8_t InpChannel_used(uint8_t Channel);
..[    1468]: bool Inp_is_Used_in_Logic(uint8_t Channel);
..[    1486]: friend class MLLExtension;
..[    1487]: };
..#   Ending FILE: MobaLedLib.h
.#  Back in FILE: leds_autoprog.h
.[      43]: typedef struct
.[      44]: {
.[      45]: uint16_t AddrAndTyp;
.[      46]: uint8_t InCnt;
.[      47]: } __attribute__ ((packed)) Ext_Addr_T;
.[      53]: const PROGMEM Ext_Addr_T Ext_Addr[] =
.[      55]: {
.[      56]: { 100 + (uint16_t)0, 1 },
.[      57]: };
.[      95]: typedef struct
.[      96]: {
.[      97]: uint8_t Var_Nr;
.[      98]: uint8_t LED_Nr;
.[      99]: uint8_t Offset_and_Typ;
.[     100]: uint8_t Val;
.[     101]: } __attribute__ ((packed)) LED2Var_Tab_T;
.[     106]: const PROGMEM LED2Var_Tab_T LED2Var_Tab[] =
.[     108]: {
.[     110]: { 1, 0, (0 << 3) | 3, 100 }
.[     111]: };
.[     118]: const PROGMEM unsigned char Config[] =
.[     119]: {
.[     120]: 170+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__, 75, ((0) < 32 ? (0) : 512\
.                )+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__\
.                +1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__, (192)&0xFF,((255) < 64*\
.                4 ? (255) : 256),255, 1,0,255,0,6, (((uint32_t)(60 *1000L))&0xFF), (((uint32_t)(60 *1000L))>>8),(((uint32_t)(\
.                0))&0xFF), (((uint32_t)(0))>>8),(((uint32_t)(1))&0xFF), (((uint32_t)(1))>>8), 1, 74, ((0) < 32 ? (0) : 512)+1 + __COUNTER__ \
.                - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ \
.                - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__, (194)&0xFF,((255) < 64*4 ? (255) : 256),255\
.                , 1,10,255,0,6|0x20, (((uint32_t)(1 *1000L))&0xFF), (((uint32_t)(1 *1000L))>>8),(((uint32_t)(1))&0xFF), ((\
.                (uint32_t)(1))>>8), 1,
.[     122]: 10, ((1) < 32 ? (1) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + \
.                __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__, ( (((( ( 1 +( 0<<2)))>>2)&0x03) + ((1-1)<<2) + (((1<=2?(8-( \
.                (( ( 1 +( 0<<2)))&0x03))*1):(( (( ( 1 +( 0<<2)))&0x03))==2?0:4))&0x07)<<5)))&0xFF,((1) < 64*4 ? (1) : 256),255, (( ( 1 \
.                +( 0<<2)))&0x03),0,127,0,0, (((uint32_t)(0 *1000L))&0xFF), (((uint32_t)(0 *1000L))>>8),(((uint32_t)(1))&0xFF\
.                ), (((uint32_t)(1))>>8), ((( (( ( 1 +( 0<<2)))&0x03))==1?0b00000001: (( (( ( 1 +( 0<<2)))&0x03))==2?0b00000011:0b00000111\
.                ))), 10, ((1) < 32 ? (1) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__\
.                +1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__, ( (((( ( 1 +( 1<<2)))>>2)&0x03) + ((1-1)<<2) + (((1<=2?(\
.                8-( (( ( 1 +( 1<<2)))&0x03))*1):(( (( ( 1 +( 1<<2)))&0x03))==2?0:4))&0x07)<<5)))&0xFF,((1) < 64*4 ? (1) : 256),255, (\
.                ( ( 1 +( 1<<2)))&0x03),0,127,0,0, (((uint32_t)(0 *1000L))&0xFF), (((uint32_t)(0 *1000L))>>8),(((uint32_t)(1)\
.                )&0xFF), (((uint32_t)(1))>>8), ((( (( ( 1 +( 1<<2)))&0x03))==1?0b00000001: (( (( ( 1 +( 1<<2)))&0x03))==2?0b00000011\
.                :0b00000111))), 10, ((1) < 32 ? (1) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ \
.                - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__, ( (((( ( 1 +( 2<<2)))>>2)&0x03) + ((1-1)<<\
.                2) + (((1<=2?(8-( (( ( 1 +( 2<<2)))&0x03))*1):(( (( ( 1 +( 2<<2)))&0x03))==2?0:4))&0x07)<<5)))&0xFF,((1) < 64*4 ? (1\
.                ) : 256),255, (( ( 1 +( 2<<2)))&0x03),0,127,0,0, (((uint32_t)(0 *1000L))&0xFF), (((uint32_t)(0 *1000L))>>8),(((\
.                uint32_t)(1))&0xFF), (((uint32_t)(1))>>8), ((( (( ( 1 +( 2<<2)))&0x03))==1?0b00000001: (( (( ( 1 +( 2<<2)))&0x03)\
.                )==2?0b00000011:0b00000111))),
.[     124]: 74, ((2) < 32 ? (2) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + \
.                __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__\
.                , (28)&0xFF,((255) < 64*4 ? (255) : 256),255, 3,0,128,0,0, (((uint32_t)(500))&0xFF), (((uint32_t)(500))>>8),((\
.                (uint32_t)(9))&0xFF), (((uint32_t)(9))>>8), 0,0,0,0,0,0,0,0,0,
.[     126]: 175, 0, 1,
.[     127]: #define ENABLE_STORE_STATUS()
.[     128]: 74, ((3) < 32 ? (3) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + \
.                __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__\
.                , (28)&0xFF,((254) < 64*4 ? (254) : 256),255, 1,0,128,0,0, (((uint32_t)(500))&0xFF), (((uint32_t)(500))>>8),((\
.                (uint32_t)(22))&0xFF), (((uint32_t)(22))>>8), 20,60,100,140,180,220,180,140,100,60,20,0,0,0,0,0,63,128\
.                ,0,0,0,63,
.[     129]: 138, ((4) < 32 ? (4) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__,((255) < 64*4 ? (255) : 256),2, 5,\
.                5, 15, 7, 0,2,35,39,29,(62+1 + __COUNTER__ - __COUNTER__),3,
.[     130]: 138, ((11) < 32 ? (11) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__,((255) < 64*4 ? (255) : 256),2, \
.                5,5, 15, 7, 0,2,35,39,29,(62+1 + __COUNTER__ - __COUNTER__),3,
.[     131]: 138, ((18) < 32 ? (18) : 512)+1 + __COUNTER__ - __COUNTER__+1 + __COUNTER__ - __COUNTER__,((255) < 64*4 ? (255) : 256),2, \
.                3,5, 15, 14, 0,2,35,39,29,35,35,35,35,35,35,35,35,35,
.[     133]: 0
.[     134]: };
.[     146]: void Set_Start_Values(MobaLedLib_C &MobaLedLib)
.[     148]: {
.[     149]: }
.[     153]: typedef bool(*HandleValue_t) (uint8_t CallbackType, uint8_t ValueId, uint8_t* Value, uint16_t EEPromAddr, uint8_t \
.                TargetValueId, uint8_t Options);
.[     162]: typedef struct
.[     163]: {
.[     164]: uint8_t TypAndInCnt;
.[     165]: uint8_t Channel;
.[     166]: } __attribute__ ((packed)) Store_Channel_T;
.[     169]: const PROGMEM Store_Channel_T Store_Values[] =
.[     170]: {
.[     171]: { (uint8_t)0x00 + 1 , 0 },
.[     172]: };
.[     182]: 

Return to Index