My Project
Macros | Functions
CanSatNeXT.h File Reference
#include "Sensors/imu.h"
#include "Sensors/baro.h"
#include "Storage/memory.h"
#include "CanSatNeXTPins.h"
#include "Communication/radio.h"
#include "Analog/analog.h"
Include dependency graph for CanSatNeXT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NO_ERROR   0
 
#define ERROR_IMU   1
 
#define ERROR_BARO   2
 
#define ERROR_RADIO   3
 
#define ERROR_MEMORY   4
 
#define ERROR_NO_SD_CARD   5
 

Functions

uint8_t CanSatInit (uint8_t *macAddress=nullptr)
 
uint8_t CanSatInit (uint8_t maccAddressLastByte)
 
uint8_t GroundStationInit (uint8_t *macAddress)
 
uint8_t GroundStationInit (uint8_t maccAddressLastByte)
 

Macro Definition Documentation

◆ ERROR_BARO

#define ERROR_BARO   2

Definition at line 16 of file CanSatNeXT.h.

◆ ERROR_IMU

#define ERROR_IMU   1

Definition at line 15 of file CanSatNeXT.h.

◆ ERROR_MEMORY

#define ERROR_MEMORY   4

Definition at line 18 of file CanSatNeXT.h.

◆ ERROR_NO_SD_CARD

#define ERROR_NO_SD_CARD   5

Definition at line 19 of file CanSatNeXT.h.

◆ ERROR_RADIO

#define ERROR_RADIO   3

Definition at line 17 of file CanSatNeXT.h.

◆ NO_ERROR

#define NO_ERROR   0

Definition at line 14 of file CanSatNeXT.h.

Function Documentation

◆ CanSatInit() [1/2]

uint8_t CanSatInit ( uint8_t *  macAddress = nullptr)

Definition at line 17 of file CanSatNeXT.cpp.

References ERROR_BARO, ERROR_IMU, ERROR_MEMORY, ERROR_NO_SD_CARD, ERROR_RADIO, I2C_SCL, I2C_SDA, initBaro(), initializeESPNOW(), initIMU(), initSDCard(), LED, MEAS_EN, SD_DET, and SDCardPresent().

Here is the call graph for this function:

◆ CanSatInit() [2/2]

uint8_t CanSatInit ( uint8_t  maccAddressLastByte)

Definition at line 11 of file CanSatNeXT.cpp.

References CanSatInit(), and createMacAddress().

Referenced by CanSatInit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GroundStationInit() [1/2]

uint8_t GroundStationInit ( uint8_t *  macAddress)

Definition at line 69 of file CanSatNeXT.cpp.

References ERROR_RADIO, and initializeESPNOW().

Here is the call graph for this function:

◆ GroundStationInit() [2/2]

uint8_t GroundStationInit ( uint8_t  maccAddressLastByte)

Definition at line 63 of file CanSatNeXT.cpp.

References createMacAddress(), and GroundStationInit().

Referenced by GroundStationInit().

Here is the call graph for this function:
Here is the caller graph for this function: