Mercurial > public > ostc4
comparison Small_CPU/Inc/externalInterface.h @ 662:1b995079c045 Betatest
PSCR Mode
author | heinrichs weikamp |
---|---|
date | Tue, 14 Dec 2021 15:36:10 +0100 |
parents | 3328189786e7 |
children | 52d68cf9994c |
comparison
equal
deleted
inserted
replaced
661:87bee7cc77b3 | 662:1b995079c045 |
---|---|
30 /* Includes ------------------------------------------------------------------*/ | 30 /* Includes ------------------------------------------------------------------*/ |
31 | 31 |
32 #define MAX_ADC_CHANNEL (3u) /* number of channels to be read */ | 32 #define MAX_ADC_CHANNEL (3u) /* number of channels to be read */ |
33 #define EXTERNAL_ADC_NO_DATA 0xFF | 33 #define EXTERNAL_ADC_NO_DATA 0xFF |
34 | 34 |
35 #define EXT33V_CONTROL_PIN GPIO_PIN_7 /* PortC */ | |
36 | |
35 void externalInterface_Init(void); | 37 void externalInterface_Init(void); |
38 void externalInterface_InitPower33(void); | |
36 uint8_t externalInterface_StartConversion(uint8_t channel); | 39 uint8_t externalInterface_StartConversion(uint8_t channel); |
37 uint8_t externalInterface_ReadAndSwitch(); | 40 uint8_t externalInterface_ReadAndSwitch(); |
38 float externalInterface_CalculateADCValue(uint8_t channel); | 41 float externalInterface_CalculateADCValue(uint8_t channel); |
39 float getExternalInterfaceChannel(uint8_t channel); | 42 float getExternalInterfaceChannel(uint8_t channel); |
43 void externalInterface_SwitchPower33(uint8_t state); | |
44 uint8_t externalInterface_isEnabledPower33(); | |
45 | |
46 void externalInterface_SetCO2Value(uint16_t CO2_ppm); | |
47 void externalInterface_SetCO2SignalStrength(uint16_t LED_qa); | |
48 uint16_t externalInterface_GetCO2Value(void); | |
49 uint16_t externalInterface_GetCO2SignalStrength(void); | |
50 void externalInterface_SetCO2State(uint16_t state); | |
51 uint16_t externalInterface_GetCO2State(void); | |
52 | |
53 void externalInterface_ExecuteCmd(uint16_t Cmd); | |
40 | 54 |
41 #endif /* EXTERNAL_INTERFACE_H */ | 55 #endif /* EXTERNAL_INTERFACE_H */ |