My Project
Functions | Variables
radio.h File Reference
#include "Arduino.h"
Include dependency graph for radio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t initializeESPNOW (uint8_t *macAddress)
 
void createMacAddress (uint8_t lastByte, uint8_t mac[6])
 
 __attribute__ ((weak)) void onDataReceived(String data)
 
uint8_t sendDataString (String data)
 
template<typename T >
uint8_t sendData (T data)
 
uint8_t sendData (char *data, uint16_t len)
 

Variables

int len
 

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

◆ createMacAddress()

void createMacAddress ( uint8_t  lastByte,
uint8_t  mac[6] 
)

Definition at line 67 of file radio.cpp.

Referenced by CanSatInit(), and GroundStationInit().

Here is the caller graph for this function:

◆ initializeESPNOW()

uint8_t initializeESPNOW ( uint8_t *  macAddress)

Definition at line 30 of file radio.cpp.

References broadcastAddress, internalDataReceivedCallback(), internalDataSentCallback(), peerInfo, and radioHasBeenInitialized.

Referenced by CanSatInit(), and GroundStationInit().

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

◆ sendData() [1/2]

uint8_t sendData ( char *  data,
uint16_t  len 
)

Definition at line 89 of file radio.cpp.

References broadcastAddress, len, and radioHasBeenInitialized.

◆ sendData() [2/2]

template<typename T >
uint8_t sendData ( data)

Definition at line 20 of file radio.h.

References sendDataString().

Here is the call graph for this function:

◆ sendDataString()

uint8_t sendDataString ( String  data)

Definition at line 77 of file radio.cpp.

References broadcastAddress, and radioHasBeenInitialized.

Referenced by sendData().

Here is the caller graph for this function:

Variable Documentation

◆ len

int len

Definition at line 13 of file radio.h.

Referenced by internalDataReceivedCallback(), and sendData().