9#include <RHHardwareSPI1.h>
11#include <TeensyThreads.h>
12#include <support/packetcomm.h>
95 RFM98(uint8_t slaveSelectPin, uint8_t interruptPin,
96 RHGenericSPI &spi = hardware_spi1);
99 int32_t
send(PacketComm &packet);
100 int32_t
recv(PacketComm &packet, uint16_t timeout);
124 Threads::Mutex *spi_mtx;
The satellite's RFM98 radio.
Definition rfm98.h:17
int32_t send(PacketComm &packet)
Transmit a packet using the RFM98 radio.
Definition rfm98.cpp:115
int32_t recv(PacketComm &packet, uint16_t timeout)
Receive a packet using the RFM98 radio.
Definition rfm98.cpp:154
int32_t reset()
Resets the RFM98 radio.
Definition rfm98.cpp:99
int32_t init(rfm98_config cfg, Threads::Mutex *mtx)
Initialization of the RFM98 radio.
Definition rfm98.cpp:36
Definitions of Serial Console helper functions.
The pins used to connect the RFM98 to the Teensy.
Definition rfm98.h:61
uint8_t nirq
The interrupt pin.
Definition rfm98.h:69
uint8_t spi_mosi
The Master Out, Slave In (MOSI) pin.
Definition rfm98.h:65
uint8_t spi_sck
The SPI clock pin.
Definition rfm98.h:67
uint8_t spi_miso
The Master In, Slave Out (MISO) pin.
Definition rfm98.h:63
uint8_t reset
The reset pin.
Definition rfm98.h:73
uint8_t cs
The chip select pin.
Definition rfm98.h:71
The RFM98 configuration structure.
Definition rfm98.h:32
uint16_t freq
The operating frequency of the radio in MHz.
Definition rfm98.h:38
uint8_t tx_power
The transmitter power level in dBm.
Definition rfm98.h:47