/vendor/hisilicon/hispark_pegasus/demo/oc_demo/ |
H A D | iot_profile.h | 21 typedef hi_void (*ClflCallBackFunc) (HiColorfulLightMode currentMode, HiControlModeType currentType); 22 typedef hi_void (*TrflCallBackFunc) (HiTrafficLightMode currentMode, HiControlModeType currentType); 23 typedef hi_void (*EnvCallBackFunc) (HiEnvironmentMode currentMode, HiControlModeType currentType); 102 hi_void SetupTrflControlModule(HiTrafficLightMode currentMode, HiControlModeType currentType); 103 hi_void SetupTrflAutoModule(HiTrafficLightMode currentMode, HiControlModeType currentType); 104 hi_void SetupTrflHumanModule(HiTrafficLightMode currentMode, HiControlModeType currentType); 106 hi_void TrafficLightStatusReport(HiTrafficLightMode currentMode, TrflCallBackFunc msg_report); 107 hi_void EnvironmentStatusReport(HiEnvironmentMode currentMode, EnvCallBackFunc msg_report); 108 hi_void SetupEnvCombustibleGasModule(HiEnvironmentMode currentMode, HiControlModeType currentType); 109 hi_void SetupEnvHumidityModule(HiEnvironmentMode currentMode, HiControlModeTyp [all...] |
H A D | app_demo_multi_sample.c | 155 unsigned char currentMode = 0; in ControlModeSample() local 157 currentMode = GetKeyStatus(CURRENT_MODE); in ControlModeSample() 180 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 193 unsigned char currentMode = 0; in DelayAndCheckKeyInterrupt() local 195 currentMode = GetKeyStatus(CURRENT_MODE); in DelayAndCheckKeyInterrupt() 199 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 310 unsigned char currentMode = 0; in ColorfulLightSample() local 312 currentMode = GetKeyStatus(CURRENT_MODE); in ColorfulLightSample() 330 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 341 unsigned char currentMode in RedLightDarkToBright() local 361 unsigned char currentMode = 0; GreenLightDarkToBright() local 381 unsigned char currentMode = 0; BlueLightDarkToBright() local 402 unsigned char currentMode = 0; PurpleLightDarkToBright() local 424 unsigned char currentMode = 0; AllLightDarkToBright() local 456 unsigned char currentMode = 0; PwmControlSample() local 494 unsigned char currentMode = 0; BrightnessControlSample() local 533 unsigned char currentMode = 0; HumanDetectSample() local 578 unsigned char currentMode = 0; LightDetectSample() local 615 unsigned char currentMode = 0; UnionDetectSample() local 658 unsigned char currentMode = 0; ReturnMainEnumSample() local 693 unsigned char currentMode = 0; OledShowMenuSelect() local [all...] |
H A D | app_demo_iot.c | 59 unsigned char currentMode = 0; in TrafficLightAppOption() local 61 currentMode = SetKeyStatus(appOptionMode); in TrafficLightAppOption() 79 unsigned char currentMode = 0; in TrafficLightMsgRcvCallBack() local 83 currentMode = SetKeyStatus(TRAFFIC_CONTROL_MODE); in TrafficLightMsgRcvCallBack() 106 TrafficLightAppOption(currentMode, currentType); in TrafficLightMsgRcvCallBack() 108 currentMode = SetKeyStatus(TRAFFIC_AUTO_MODE); in TrafficLightMsgRcvCallBack() 109 TrafficLightAppOption(currentMode, currentType); in TrafficLightMsgRcvCallBack() 111 currentMode = SetKeyStatus(TRAFFIC_HUMAN_MODE); in TrafficLightMsgRcvCallBack() 117 TrafficLightAppOption(currentMode, currentType); in TrafficLightMsgRcvCallBack() 185 void SetupTrflControlModule(HiTrafficLightMode currentMode, HiControlModeTyp argument 260 SetupTrflAutoModule(HiTrafficLightMode currentMode, HiControlModeType currentType) SetupTrflAutoModule() argument 290 SetupTrflHumanModule(HiTrafficLightMode currentMode, HiControlModeType currentType) SetupTrflHumanModule() argument 344 TrafficLightStatusReport(HiTrafficLightMode currentMode, const TrflCallBackFunc msgReport) TrafficLightStatusReport() argument [all...] |
H A D | app_demo_traffic_sample.c | 48 unsigned char currentMode = 0; in TrafficControlModeSample() local 50 currentMode = GetKeyStatus(CURRENT_MODE); in TrafficControlModeSample() 76 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in TrafficControlModeSample()
|
H A D | app_demo_config.c | 381 static unsigned char currentMode = 0; in OledLedLightHumanReckonShow() local 386 currentMode = GetKeyStatus(CURRENT_MODE); in OledLedLightHumanReckonShow() 389 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in OledLedLightHumanReckonShow() 591 static unsigned char currentMode = 0; in OledAutoRedLedLigthReckonByTimeShow() local 599 currentMode = GetKeyStatus(CURRENT_MODE); in OledAutoRedLedLigthReckonByTimeShow() 605 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in OledAutoRedLedLigthReckonByTimeShow() 614 static unsigned char currentMode = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local 623 currentMode = GetKeyStatus(CURRENT_MODE); in OledHumanNormalRedLedLigthReckonByTimeShow() 629 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in OledHumanNormalRedLedLigthReckonByTimeShow() 643 static unsigned char currentMode in OledHumanRedLedLigthReckonByTimeShow() local 693 static unsigned char currentMode = 0; OledAutoRedLedLigthFiveSecondCountShow() local 716 static unsigned char currentMode = 0; OledHumanRedLedLigthFiveSecondCountShow() local 932 static unsigned char currentMode = 0; OledAutoGreenLedLigthFiveSecondCountShow() local 955 static unsigned char currentMode = 0; OledHumanGreenLedLigthFiveSecondCountShow() local 1083 static unsigned char currentMode = 0; OledAutoYellowLedLigthOnRecordShow() local 1108 static unsigned char currentMode = 0; OledHumanRedLedLigth30SecondCountShow() local 1136 static unsigned char currentMode = 0; OledHumanNormalYellowLedLigthOnRecordShow() local 1166 static unsigned char currentMode = 0; OledHumanYellowLedLigthOnRecordShow() local 1217 static unsigned char currentMode = 0; OledAutoGreenLedLigthReckonByTimeShow() local 1240 static unsigned char currentMode = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local 1269 static unsigned char currentMode = 0; OledHumanGreenLedLigthReckonByTimeShow() local 1649 static unsigned char currentMode = 0; OledTrafficReturnModeShow() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/environment_demo/ |
H A D | app_demo_environment.c | 32 static unsigned short currentMode = 0; in ShowTemperatureValue() local 37 currentMode = GetKeyStatus(CURRENT_MODE); in ShowTemperatureValue() 45 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in ShowTemperatureValue() 46 currentMode = GetKeyStatus(CURRENT_MODE); in ShowTemperatureValue() 56 static unsigned short currentMode = 0; in ShowHumidityValue() local 61 currentMode = GetKeyStatus(CURRENT_MODE); in ShowHumidityValue() 68 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in ShowHumidityValue() 79 unsigned short currentMode = 0; in ShowCombustibleGasValue() local 82 currentMode = GetKeyStatus(CURRENT_MODE); in ShowCombustibleGasValue() 95 if (currentMode ! in ShowCombustibleGasValue() [all...] |
H A D | app_demo_multi_sample.c | 154 unsigned char currentMode = 0; in ControlModeSample() local 156 currentMode = GetKeyStatus(CURRENT_MODE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 192 unsigned char currentMode = 0; in DelayAndCheckKeyInterrupt() local 194 currentMode = GetKeyStatus(CURRENT_MODE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 309 unsigned char currentMode = 0; in ColorfulLightSample() local 311 currentMode = GetKeyStatus(CURRENT_MODE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 340 unsigned char currentMode in RedLightDarkToBright() local 360 unsigned char currentMode = 0; GreenLightDarkToBright() local 380 unsigned char currentMode = 0; BlueLightDarkToBright() local 401 unsigned char currentMode = 0; PurpleLightDarkToBright() local 423 unsigned char currentMode = 0; AllLightDarkToBright() local 455 unsigned char currentMode = 0; PwmControlSample() local 493 unsigned char currentMode = 0; BrightnessControlSample() local 532 unsigned char currentMode = 0; HumanDetectSample() local 577 unsigned char currentMode = 0; LightDetectSample() local 614 unsigned char currentMode = 0; UnionDetectSample() local 657 unsigned char currentMode = 0; ReturnMainEnumSample() local 692 unsigned char currentMode = 0; OledShowMenuSelect() local [all...] |
H A D | app_demo_config.c | 35 static unsigned char currentMode = 0; in ReturnAllModeEnumSample() local 36 currentMode = GetKeyStatus(CURRENT_MODE); in ReturnAllModeEnumSample() 38 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in ReturnAllModeEnumSample() 39 currentMode = GetKeyStatus(CURRENT_MODE); in ReturnAllModeEnumSample() 52 static unsigned char currentMode = 0; in ShowAllEnvironmentValue() local 54 currentMode = GetKeyStatus(CURRENT_MODE); in ShowAllEnvironmentValue() 77 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in ShowAllEnvironmentValue() 78 currentMode = GetKeyStatus(CURRENT_MODE); in ShowAllEnvironmentValue()
|
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/ |
H A D | app_demo_multi_sample.c | 154 unsigned char currentMode = 0; in ControlModeSample() local 156 currentMode = GetKeyStatus(CURRENT_MODE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 192 unsigned char currentMode = 0; in DelayAndCheckKeyInterrupt() local 194 currentMode = GetKeyStatus(CURRENT_MODE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 309 unsigned char currentMode = 0; in ColorfulLightSample() local 311 currentMode = GetKeyStatus(CURRENT_MODE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 340 unsigned char currentMode in RedLightDarkToBright() local 360 unsigned char currentMode = 0; GreenLightDarkToBright() local 380 unsigned char currentMode = 0; BlueLightDarkToBright() local 401 unsigned char currentMode = 0; PurpleLightDarkToBright() local 423 unsigned char currentMode = 0; AllLightDarkToBright() local 455 unsigned char currentMode = 0; PwmControlSample() local 493 unsigned char currentMode = 0; BrightnessControlSample() local 532 unsigned char currentMode = 0; HumanDetectSample() local 577 unsigned char currentMode = 0; LightDetectSample() local 614 unsigned char currentMode = 0; UnionDetectSample() local 657 unsigned char currentMode = 0; ReturnMainEnumSample() local 692 unsigned char currentMode = 0; OledShowMenuSelect() local [all...] |
H A D | app_demo_traffic_sample.c | 48 unsigned char currentMode = 0; in TrafficControlModeSample() local 50 currentMode = GetKeyStatus(CURRENT_MODE); in TrafficControlModeSample() 76 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in TrafficControlModeSample()
|
H A D | app_demo_config.c | 353 static unsigned char currentMode = 0; in OledLedLightHumanReckonShow() local 358 currentMode = GetKeyStatus(CURRENT_MODE); in OledLedLightHumanReckonShow() 361 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in OledLedLightHumanReckonShow() 563 static unsigned char currentMode = 0; in OledAutoRedLedLigthReckonByTimeShow() local 571 currentMode = GetKeyStatus(CURRENT_MODE); in OledAutoRedLedLigthReckonByTimeShow() 577 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in OledAutoRedLedLigthReckonByTimeShow() 586 static unsigned char currentMode = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local 595 currentMode = GetKeyStatus(CURRENT_MODE); in OledHumanNormalRedLedLigthReckonByTimeShow() 601 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in OledHumanNormalRedLedLigthReckonByTimeShow() 615 static unsigned char currentMode in OledHumanRedLedLigthReckonByTimeShow() local 665 static unsigned char currentMode = 0; OledAutoRedLedLigthFiveSecondCountShow() local 688 static unsigned char currentMode = 0; OledHumanRedLedLigthFiveSecondCountShow() local 904 static unsigned char currentMode = 0; OledAutoGreenLedLigthFiveSecondCountShow() local 927 static unsigned char currentMode = 0; OledHumanGreenLedLigthFiveSecondCountShow() local 1055 static unsigned char currentMode = 0; OledAutoYellowLedLigthOnRecordShow() local 1080 static unsigned char currentMode = 0; OledHumanRedLedLigth30SecondCountShow() local 1108 static unsigned char currentMode = 0; OledHumanNormalYellowLedLigthOnRecordShow() local 1138 static unsigned char currentMode = 0; OledHumanYellowLedLigthOnRecordShow() local 1189 static unsigned char currentMode = 0; OledAutoGreenLedLigthReckonByTimeShow() local 1212 static unsigned char currentMode = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local 1241 static unsigned char currentMode = 0; OledHumanGreenLedLigthReckonByTimeShow() local 1621 static unsigned char currentMode = 0; OledTrafficReturnModeShow() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/nfc_demo/ |
H A D | app_demo_multi_sample.c | 154 unsigned char currentMode = 0; in ControlModeSample() local 156 currentMode = GetKeyStatus(CURRENT_MODE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 192 unsigned char currentMode = 0; in DelayAndCheckKeyInterrupt() local 194 currentMode = GetKeyStatus(CURRENT_MODE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 309 unsigned char currentMode = 0; in ColorfulLightSample() local 311 currentMode = GetKeyStatus(CURRENT_MODE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 340 unsigned char currentMode in RedLightDarkToBright() local 360 unsigned char currentMode = 0; GreenLightDarkToBright() local 380 unsigned char currentMode = 0; BlueLightDarkToBright() local 401 unsigned char currentMode = 0; PurpleLightDarkToBright() local 423 unsigned char currentMode = 0; AllLightDarkToBright() local 455 unsigned char currentMode = 0; PwmControlSample() local 493 unsigned char currentMode = 0; BrightnessControlSample() local 532 unsigned char currentMode = 0; HumanDetectSample() local 577 unsigned char currentMode = 0; LightDetectSample() local 614 unsigned char currentMode = 0; UnionDetectSample() local 657 unsigned char currentMode = 0; ReturnMainEnumSample() local 692 unsigned char currentMode = 0; OledShowMenuSelect() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/traffic_light_demo/ |
H A D | app_demo_multi_sample.c | 154 unsigned char currentMode = 0; in ControlModeSample() local 156 currentMode = GetKeyStatus(CURRENT_MODE); in ControlModeSample() 179 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ControlModeSample() 192 unsigned char currentMode = 0; in DelayAndCheckKeyInterrupt() local 194 currentMode = GetKeyStatus(CURRENT_MODE); in DelayAndCheckKeyInterrupt() 198 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in DelayAndCheckKeyInterrupt() 309 unsigned char currentMode = 0; in ColorfulLightSample() local 311 currentMode = GetKeyStatus(CURRENT_MODE); in ColorfulLightSample() 329 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in ColorfulLightSample() 340 unsigned char currentMode in RedLightDarkToBright() local 360 unsigned char currentMode = 0; GreenLightDarkToBright() local 380 unsigned char currentMode = 0; BlueLightDarkToBright() local 401 unsigned char currentMode = 0; PurpleLightDarkToBright() local 423 unsigned char currentMode = 0; AllLightDarkToBright() local 455 unsigned char currentMode = 0; PwmControlSample() local 493 unsigned char currentMode = 0; BrightnessControlSample() local 532 unsigned char currentMode = 0; HumanDetectSample() local 577 unsigned char currentMode = 0; LightDetectSample() local 614 unsigned char currentMode = 0; UnionDetectSample() local 657 unsigned char currentMode = 0; ReturnMainEnumSample() local 692 unsigned char currentMode = 0; OledShowMenuSelect() local [all...] |
H A D | app_demo_traffic_sample.c | 48 unsigned char currentMode = 0; in TrafficControlModeSample() local 50 currentMode = GetKeyStatus(CURRENT_MODE); in TrafficControlModeSample() 76 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in TrafficControlModeSample()
|
H A D | app_demo_config.c | 353 static unsigned char currentMode = 0; in OledLedLightHumanReckonShow() local 358 currentMode = GetKeyStatus(CURRENT_MODE); in OledLedLightHumanReckonShow() 361 if ((currentMode != GetKeyStatus(CURRENT_MODE)) || (currentType != GetKeyStatus(CURRENT_TYPE))) { in OledLedLightHumanReckonShow() 563 static unsigned char currentMode = 0; in OledAutoRedLedLigthReckonByTimeShow() local 571 currentMode = GetKeyStatus(CURRENT_MODE); in OledAutoRedLedLigthReckonByTimeShow() 577 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in OledAutoRedLedLigthReckonByTimeShow() 586 static unsigned char currentMode = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local 595 currentMode = GetKeyStatus(CURRENT_MODE); in OledHumanNormalRedLedLigthReckonByTimeShow() 601 if (currentMode != GetKeyStatus(CURRENT_MODE)) { in OledHumanNormalRedLedLigthReckonByTimeShow() 615 static unsigned char currentMode in OledHumanRedLedLigthReckonByTimeShow() local 665 static unsigned char currentMode = 0; OledAutoRedLedLigthFiveSecondCountShow() local 688 static unsigned char currentMode = 0; OledHumanRedLedLigthFiveSecondCountShow() local 904 static unsigned char currentMode = 0; OledAutoGreenLedLigthFiveSecondCountShow() local 927 static unsigned char currentMode = 0; OledHumanGreenLedLigthFiveSecondCountShow() local 1055 static unsigned char currentMode = 0; OledAutoYellowLedLigthOnRecordShow() local 1080 static unsigned char currentMode = 0; OledHumanRedLedLigth30SecondCountShow() local 1108 static unsigned char currentMode = 0; OledHumanNormalYellowLedLigthOnRecordShow() local 1138 static unsigned char currentMode = 0; OledHumanYellowLedLigthOnRecordShow() local 1189 static unsigned char currentMode = 0; OledAutoGreenLedLigthReckonByTimeShow() local 1212 static unsigned char currentMode = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local 1241 static unsigned char currentMode = 0; OledHumanGreenLedLigthReckonByTimeShow() local 1621 static unsigned char currentMode = 0; OledTrafficReturnModeShow() local [all...] |