CCAux  2.20.0.0
CCAux API reference
Config.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 2023 CrossControl AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; with
8  * version 2.1 of the License.
9  */
10 /*
11  * File description:
12  * Configuration of various settings
13  *
14  * Use the function GetConfig() to get a handle to pass on to the other functions.
15  * Use the method Config_release(CONFIGHANDLE) to return the handle.
16  *
17  * Example Usage:
18  * @include config_example.cpp
19  *
20  ************************************************/
21 #ifndef CC_CONFIG_H
22 #define CC_CONFIG_H
23 
24 #include "CCAuxErrors.h"
25 #include "CCAuxTypes.h"
26 #include "CCPlatform.h"
27 
28 #ifdef __cplusplus
29 namespace CrossControl
30 {
31 #endif
32 
33 typedef void *CONFIGHANDLE;
34 
36  (1
37  << 0);
39  (1
40  << 1);
42  (1
43  << 2);
45  (1
46  << 3);
67 EXTERN_C
68 CCAUXDLL_API
70 CCAUXDLL_CALLING_CONV
71 GetConfig(void);
72 
83 EXTERN_C
84 CCAUXDLL_API
85 void CCAUXDLL_CALLING_CONV Config_release(CONFIGHANDLE);
86 
102 EXTERN_C
103 CCAUXDLL_API
105 
116 EXTERN_C
117 CCAUXDLL_API
119 
130 EXTERN_C
131 CCAUXDLL_API
133 
144 EXTERN_C
145 CCAUXDLL_API
147 
158 EXTERN_C
159 CCAUXDLL_API
160 eErr CCAUXDLL_CALLING_CONV Config_getOnOffSigAction(CONFIGHANDLE, PowerAction *action);
161 
174 EXTERN_C
175 CCAUXDLL_API
176 eErr CCAUXDLL_CALLING_CONV Config_getFrontBtnTrigTime(CONFIGHANDLE, uint16_t *triggertime);
177 
189 EXTERN_C
190 CCAUXDLL_API
191 eErr CCAUXDLL_CALLING_CONV Config_getExtOnOffSigTrigTime(CONFIGHANDLE, uint32_t *triggertime);
192 
204 EXTERN_C
205 CCAUXDLL_API
206 eErr CCAUXDLL_CALLING_CONV Config_getPreIgnitionTrigTime(CONFIGHANDLE, uint32_t *triggertime);
207 
221 EXTERN_C
222 CCAUXDLL_API
223 eErr CCAUXDLL_CALLING_CONV Config_getButtonFunction(CONFIGHANDLE, uint8_t button_number,
224  ButtonConfigEnum *button_config);
225 
237 EXTERN_C
238 CCAUXDLL_API
239 eErr CCAUXDLL_CALLING_CONV Config_getSuspendMaxTime(CONFIGHANDLE, uint16_t *maxTime);
240 
252 EXTERN_C
253 CCAUXDLL_API
255 
268 EXTERN_C
269 CCAUXDLL_API
271 
285 EXTERN_C
286 CCAUXDLL_API
288 
301 EXTERN_C
302 CCAUXDLL_API
304 
317 EXTERN_C
318 CCAUXDLL_API
320 
333 EXTERN_C
334 CCAUXDLL_API
335 eErr CCAUXDLL_CALLING_CONV Config_getHeatingTempLimit(CONFIGHANDLE, int16_t *temperature);
336 
349 EXTERN_C
350 CCAUXDLL_API
351 eErr CCAUXDLL_CALLING_CONV Config_getPowerOnStartup(CONFIGHANDLE, CCStatus *status);
352 
366 EXTERN_C
367 CCAUXDLL_API
369 
380 EXTERN_C
381 CCAUXDLL_API
383 
397 EXTERN_C
398 CCAUXDLL_API
400 
411 EXTERN_C
412 CCAUXDLL_API
414 
425 EXTERN_C
426 CCAUXDLL_API
427 eErr CCAUXDLL_CALLING_CONV Config_setOnOffSigAction(CONFIGHANDLE, PowerAction action);
428 
443 EXTERN_C
444 CCAUXDLL_API
445 eErr CCAUXDLL_CALLING_CONV Config_setFrontBtnTrigTime(CONFIGHANDLE, uint16_t triggertime);
446 
458 EXTERN_C
459 CCAUXDLL_API
460 eErr CCAUXDLL_CALLING_CONV Config_setExtOnOffSigTrigTime(CONFIGHANDLE, uint32_t triggertime);
461 
473 EXTERN_C
474 CCAUXDLL_API
475 eErr CCAUXDLL_CALLING_CONV Config_setPreIgnitionTrigTime(CONFIGHANDLE, uint32_t triggertime);
476 
487 EXTERN_C
488 CCAUXDLL_API
489 eErr CCAUXDLL_CALLING_CONV Config_setButtonFunction(CONFIGHANDLE, uint8_t button_number,
490  ButtonConfigEnum button_config);
491 
503 EXTERN_C
504 CCAUXDLL_API
505 eErr CCAUXDLL_CALLING_CONV Config_setSuspendMaxTime(CONFIGHANDLE, uint16_t maxTime);
506 
518 EXTERN_C
519 CCAUXDLL_API
521 
534 EXTERN_C
535 CCAUXDLL_API
537 
551 EXTERN_C
552 CCAUXDLL_API
554 
566 EXTERN_C
567 CCAUXDLL_API
569 
582 EXTERN_C
583 CCAUXDLL_API
585 
598 EXTERN_C
599 CCAUXDLL_API
600 eErr CCAUXDLL_CALLING_CONV Config_setHeatingTempLimit(CONFIGHANDLE, int16_t temperature);
601 
614 EXTERN_C
615 CCAUXDLL_API
616 eErr CCAUXDLL_CALLING_CONV Config_setPowerOnStartup(CONFIGHANDLE, CCStatus status);
617 
628 EXTERN_C
629 CCAUXDLL_API
630 eErr CCAUXDLL_CALLING_CONV Config_setRS485Enabled(CONFIGHANDLE, RS4XXPort port, bool enabled);
631 
642 EXTERN_C
643 CCAUXDLL_API
644 eErr CCAUXDLL_CALLING_CONV Config_getRS485Enabled(CONFIGHANDLE, RS4XXPort port, bool *enabled);
645 
655 EXTERN_C
656 CCAUXDLL_API
658 
668 EXTERN_C
669 CCAUXDLL_API
671 
682 EXTERN_C
683 CCAUXDLL_API
685 
697 EXTERN_C
698 CCAUXDLL_API
700 
712 EXTERN_C
713 CCAUXDLL_API
714 eErr CCAUXDLL_CALLING_CONV Config_getWakeupTriggerCfg(CONFIGHANDLE, WakeupTriggerCfg config, CCStatus *status);
715 
727 EXTERN_C
728 CCAUXDLL_API
730 
740 EXTERN_C
741 CCAUXDLL_API
743 
753 EXTERN_C
754 CCAUXDLL_API
755 eErr CCAUXDLL_CALLING_CONV Config_getNextBootMode(CONFIGHANDLE, BootModeEnum *mode);
756 
766 EXTERN_C
767 CCAUXDLL_API
768 eErr CCAUXDLL_CALLING_CONV Config_setOSAliveMonitoring(CONFIGHANDLE, CCStatus enabled);
769 
779 EXTERN_C
780 CCAUXDLL_API
781 eErr CCAUXDLL_CALLING_CONV Config_getOSAliveMonitoring(CONFIGHANDLE, CCStatus *enabled);
782 
792 EXTERN_C
793 CCAUXDLL_API
795 
805 EXTERN_C
806 CCAUXDLL_API
808 
818 EXTERN_C
819 CCAUXDLL_API
820 eErr CCAUXDLL_CALLING_CONV Config_getOnOffSignalState(CONFIGHANDLE, CCStatus *enabled);
821 
833 EXTERN_C
834 CCAUXDLL_API
836 
848 EXTERN_C
849 CCAUXDLL_API
851 
865 EXTERN_C
866 CCAUXDLL_API
867 eErr CCAUXDLL_CALLING_CONV Config_getShortBeepSettings(CONFIGHANDLE, uint16_t *duration, uint16_t *frequency,
868  uint16_t *volume);
869 
883 EXTERN_C
884 CCAUXDLL_API
885 eErr CCAUXDLL_CALLING_CONV Config_setShortBeepSettings(CONFIGHANDLE, uint16_t duration, uint16_t frequency,
886  uint16_t volume);
887 
901 EXTERN_C
902 CCAUXDLL_API
903 eErr CCAUXDLL_CALLING_CONV Config_getLongBeepSettings(CONFIGHANDLE, uint16_t *duration, uint16_t *frequency,
904  uint16_t *volume);
905 
919 EXTERN_C
920 CCAUXDLL_API
921 eErr CCAUXDLL_CALLING_CONV Config_setLongBeepSettings(CONFIGHANDLE, uint16_t duration, uint16_t frequency,
922  uint16_t volume);
923 
933 EXTERN_C
934 CCAUXDLL_API
935 eErr CCAUXDLL_CALLING_CONV Config_getSystemMode(CONFIGHANDLE, SystemMode *mode);
936 
947 EXTERN_C
948 CCAUXDLL_API
949 eErr CCAUXDLL_CALLING_CONV Config_getTriggerAvailability(CONFIGHANDLE, TriggerType trigger, CCStatus *available);
950 
952 #ifdef __cplusplus
953 } /* namespace CrossControl */
954 #endif
955 
956 #endif /* CC_CONFIG_H */
signed short int16_t
Definition: CCAuxTypes.h:35
unsigned short uint16_t
Definition: CCAuxTypes.h:38
unsigned int uint32_t
Definition: CCAuxTypes.h:39
unsigned char uint8_t
Definition: CCAuxTypes.h:37
double float64_t
Definition: CCAuxTypes.h:16
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getTriggerAvailability(CONFIGHANDLE, TriggerType trigger, CCStatus *available)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setButtonFunction(CONFIGHANDLE, uint8_t button_number, ButtonConfigEnum button_config)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setVideoStartupPowerConfig(CONFIGHANDLE, uint8_t config)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getSuspendMaxTime(CONFIGHANDLE, uint16_t *maxTime)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setStartupTriggerConfig(CONFIGHANDLE, TriggerConf conf)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getNextBootMode(CONFIGHANDLE, BootModeEnum *mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setOnOffSigAction(CONFIGHANDLE, PowerAction action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setExtOnOffSigTrigTime(CONFIGHANDLE, uint32_t triggertime)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setLongBeepSettings(CONFIGHANDLE, uint16_t duration, uint16_t frequency, uint16_t volume)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setDigPowerOutputStartupConfig(CONFIGHANDLE, PowerOutput output, CCStatus enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getStartupTriggerCfg(CONFIGHANDLE, StartupTriggerCfg config, CCStatus *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getCanStartupPowerConfig(CONFIGHANDLE, CCStatus *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getOSAliveMonitoring(CONFIGHANDLE, CCStatus *enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setNextBootMode(CONFIGHANDLE, BootModeEnum mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setOSAliveMonitoring(CONFIGHANDLE, CCStatus enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getSuspendMaxTimeShutdownAfterResume(CONFIGHANDLE, CCStatus *shutdown)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getDigPowerOutputStartupConfig(CONFIGHANDLE, PowerOutput output, CCStatus *enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setActionTriggerCfg(CONFIGHANDLE, ActionTriggerCfg config, PowerAction action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getStartupVoltageConfig(CONFIGHANDLE, float64_t *voltage)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getPowerOnStartup(CONFIGHANDLE, CCStatus *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setFrontBtnTrigTime(CONFIGHANDLE, uint16_t triggertime)
EXTERN_C CCAUXDLL_API CONFIGHANDLE CCAUXDLL_CALLING_CONV GetConfig(void)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setLongButtonPressAction(CONFIGHANDLE, PowerAction action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getOnOffSigAction(CONFIGHANDLE, PowerAction *action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setShortBeepSettings(CONFIGHANDLE, uint16_t duration, uint16_t frequency, uint16_t volume)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getActionTriggerCfg(CONFIGHANDLE, ActionTriggerCfg config, PowerAction *action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getOnOffTriggerMode(CONFIGHANDLE, ConfigOnOffTriggerMode *mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getVideoStartupPowerConfig(CONFIGHANDLE, uint8_t *config)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setStartupVoltageConfig(CONFIGHANDLE, float64_t voltage)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setCanStartupPowerConfig(CONFIGHANDLE, CCStatus status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setShortButtonPressAction(CONFIGHANDLE, PowerAction action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setSuspendMaxTime(CONFIGHANDLE, uint16_t maxTime)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getWakeupTriggerCfg(CONFIGHANDLE, WakeupTriggerCfg config, CCStatus *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setPreIgnitionTrigTime(CONFIGHANDLE, uint32_t triggertime)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setRS485Enabled(CONFIGHANDLE, RS4XXPort port, bool enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getLongBeepSettings(CONFIGHANDLE, uint16_t *duration, uint16_t *frequency, uint16_t *volume)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getButtonFunction(CONFIGHANDLE, uint8_t button_number, ButtonConfigEnum *button_config)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setHeatingTempLimit(CONFIGHANDLE, int16_t temperature)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setOnOffTriggerMode(CONFIGHANDLE, ConfigOnOffTriggerMode mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getLongButtonPressAction(CONFIGHANDLE, PowerAction *action)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV Config_release(CONFIGHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setSuspendMaxTimeShutdownAfterResume(CONFIGHANDLE, CCStatus shutdown)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setStartupTriggerCfg(CONFIGHANDLE, StartupTriggerCfg config, CCStatus status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getShortButtonPressAction(CONFIGHANDLE, PowerAction *action)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getPreIgnitionTrigTime(CONFIGHANDLE, uint32_t *triggertime)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setOSAliveMonitoringTimeout(CONFIGHANDLE, uint16_t timeout)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getFrontBtnTrigTime(CONFIGHANDLE, uint16_t *triggertime)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getHeatingTempLimit(CONFIGHANDLE, int16_t *temperature)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getStartupTriggerConfig(CONFIGHANDLE, TriggerConf *config)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getOnOffSignalState(CONFIGHANDLE, CCStatus *enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setPowerOnStartup(CONFIGHANDLE, CCStatus status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getRS485Enabled(CONFIGHANDLE, RS4XXPort port, bool *enabled)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setExtFanStartupPowerConfig(CONFIGHANDLE, CCStatus status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getOSAliveMonitoringTimeout(CONFIGHANDLE, uint16_t *timeout)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getShortBeepSettings(CONFIGHANDLE, uint16_t *duration, uint16_t *frequency, uint16_t *volume)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getSystemMode(CONFIGHANDLE, SystemMode *mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getExtFanStartupPowerConfig(CONFIGHANDLE, CCStatus *status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_setWakeupTriggerCfg(CONFIGHANDLE, WakeupTriggerCfg config, CCStatus status)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV Config_getExtOnOffSigTrigTime(CONFIGHANDLE, uint32_t *triggertime)
Definition: About.h:30
ConfigOnOffTriggerMode
Definition: CCAuxTypes.h:684
PowerOutput
Definition: CCAuxTypes.h:690
PowerAction
Definition: CCAuxTypes.h:441
SystemMode
Definition: CCAuxTypes.h:704
const uint8_t Video1Conf
Definition: Config.h:35
TriggerType
Definition: CCAuxTypes.h:337
const uint8_t Video4Conf
Definition: Config.h:44
StartupTriggerCfg
Definition: CCAuxTypes.h:389
ActionTriggerCfg
Definition: CCAuxTypes.h:425
RS4XXPort
Definition: CCAuxTypes.h:580
CCStatus
Definition: CCAuxTypes.h:153
WakeupTriggerCfg
Definition: CCAuxTypes.h:405
const uint8_t Video3Conf
Definition: Config.h:41
BootModeEnum
Definition: CCAuxTypes.h:672
const uint8_t Video2Conf
Definition: Config.h:38
void * CONFIGHANDLE
Definition: Config.h:33
ButtonConfigEnum
Definition: CCAuxTypes.h:654
eErr
Definition: CCAuxTypes.h:162
TriggerConf
Definition: CCAuxTypes.h:366