FOSSASAT-1B
Loading...
Searching...
No Matches
configuration.cpp
1#include "configuration.h"
2
3// flag to signal interrupts enabled/disabled
4volatile bool interruptsEnabled = true;
5
6// flag to signal data was received from ISR
7volatile bool dataReceived = false;
8
9// current modem configuration
11
12// current spreading factor mode
14
15// timestamps
17
18// INA226 instance
20
21// RadioLib instances
24
25// transmission password
26const char* password = "password";
27
28// encryption key
29const uint8_t encryptionKey[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
30 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00};
31
void Configuration_Setup_Pins()
This function is called at the very beginning of the satellite's startup to configure each pin.
uint8_t spreadingFactorMode
const uint8_t encryptionKey[]
uint8_t currentModem
SX1268 radio
volatile bool dataReceived
const char * password
INA226 ina
volatile bool interruptsEnabled
uint32_t lastHeartbeat
MorseClient morse
#define ANALOG_IN_SOLAR_C_VOLTAGE_PIN
#define ANALOG_IN_RANDOM_SEED
#define RADIO_NRST
#define DIGITAL_OUT_WATCHDOG_HEARTBEAT
#define DIGITAL_OUT_MPPT_PIN
#define ANALOG_IN_SOLAR_B_VOLTAGE_PIN
#define DIGITAL_OUT_MOSFET_2
#define ANALOG_IN_SOLAR_A_VOLTAGE_PIN
#define RADIO_DIO1
#define RADIO_NSS
#define DIGITAL_OUT_MOSFET_1
#define RADIO_BUSY
T Persistent_Storage_Read(uint16_t addr)
This function reads a value of type T from EEPROM.