Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
Loading...
Searching...
No Matches
Artemis::Devices::Astrodev::tcv_config Struct Reference

Structure for configuring the Astrodev radio. More...

#include <astrodev.h>

Public Attributes

uint8_t interface_baud_rate
 The baud rate of the radio's serial interface.
 
uint8_t power_amp_level
 The transmit power amplifier level.
 
uint8_t rx_baud_rate
 The RF receive baud rate.
 
uint8_t tx_baud_rate
 The RF transmit baud rate.
 
Devices::Astrodev::Modulation rx_modulation
 The modulation for the receiver.
 
Devices::Astrodev::Modulation tx_modulation
 The modulation for the transmitter.
 
uint32_t rx_frequency
 The operating frequency for the receiver.
 
uint32_t tx_frequency
 The operating frequency for the transmitter.
 
uint8_t ax25_source [6]
 AX25 mode source call sign.
 
uint8_t ax25_destination [6]
 AX25 mode destination call sign.
 
uint16_t ax25_preamble_length
 AX25 Mode transmit preamble length.
 
uint16_t ax25_postamble_length
 AX25 Mode transmit postamble length.
 
function_config1 config1
 Discrete radio function configuration.
 
function_config2 config2
 More discrete radio function configuration.
 

Detailed Description

Structure for configuring the Astrodev radio.

This defines the full structure of Astrodev radio configuration settings. These settings are more complex, defining settings that contain numberical configuration values for the transceiver. This stucture is sent as the payload of a packet from the Teensy to the Astrodev radio to configure the radio.

This struct consists of 14 members and is 188 bits in size. Because of the large number of members, they are not summarized in this top-level description. See the definition of this structure for the member summaries.A diagram of the struct is included below.

     Bytes 0-3
    1 byte                1 byte            1 byte         1 byte
    +---------------------+-----------------+--------------+--------------+
    | interface_baud_rate | power_amp_level | rx_baud_rate | tx_baud_rate
|
    +---------------------+-----------------+--------------+--------------+

    Bytes 4-7
    1 byte          1 byte          2 bytes
    +---------------+---------------+--------------
    | rx_modulation | tx_modulation | rx_frequency ...
    +---------------+---------------+--------------

    Bytes 8-11
    2 bytes        2 bytes
    ---------------+---------------
...  rx_frequency |  tx_frequency ...
    ---------------+---------------

    Bytes 12-15
    2 bytes        6 bits          6 bits                4 bits
    ---------------+---------------+--------------------+----------------------
...  tx_frequency | ax25_source[] | ax25_destination[] |
ax25_preamble_length ...
    ---------------+---------------+--------------------+----------------------

    Bytes 16-19
    12 bits                2 bytes                 4 bits
    -----------------------+-----------------------+---------
...  ax25_preamble_length | ax25_postamble_length | config1 ...
    -----------------------+-----------------------+---------

    Bytes 20-23
    12 bits   2 bytes
    ----------+---------+
...  config1 | config2 |
    ----------+---------+

Member Data Documentation

◆ ax25_destination

uint8_t Artemis::Devices::Astrodev::tcv_config::ax25_destination[6]

AX25 mode destination call sign.

This 6-character array defines the destination call sign for AX25 mode.

◆ ax25_postamble_length

uint16_t Artemis::Devices::Astrodev::tcv_config::ax25_postamble_length

AX25 Mode transmit postamble length.

This defines the length of the transmit postamble for AX25 mode.

◆ ax25_preamble_length

uint16_t Artemis::Devices::Astrodev::tcv_config::ax25_preamble_length

AX25 Mode transmit preamble length.

This defines the length of the transmit preamble for AX25 mode.

◆ ax25_source

uint8_t Artemis::Devices::Astrodev::tcv_config::ax25_source[6]

AX25 mode source call sign.

This 6-character array defines the source call sign for AX25 mode.

◆ config1

function_config1 Artemis::Devices::Astrodev::tcv_config::config1

Discrete radio function configuration.

This defines discrete radio functions that use short fields.

See also
function_config1 for struct definitions.

◆ config2

function_config2 Artemis::Devices::Astrodev::tcv_config::config2

More discrete radio function configuration.

This defines more discrete radio functions that use short fields.

See also
function_config2 for struct definitions.

◆ interface_baud_rate

uint8_t Artemis::Devices::Astrodev::tcv_config::interface_baud_rate

The baud rate of the radio's serial interface.

This defines the baud rate of the serial interface connecting the Astrodev radio and Teensy. Possible options are:

  • 0: 9600 bps
  • 1: 19200 bps
  • 2: 38400 bps
  • 3: 57600 bps
  • 4: 115200 bps
See also
UART_BAUD for mapping between configuration value and baud rate.

◆ power_amp_level

uint8_t Artemis::Devices::Astrodev::tcv_config::power_amp_level

The transmit power amplifier level.

This defines the power amplification level for the transmitter on the radio. Possible options range from:

  • 0x00: Minimum amplification
  • 0xFF: Maximum amplification

◆ rx_baud_rate

uint8_t Artemis::Devices::Astrodev::tcv_config::rx_baud_rate

The RF receive baud rate.

This defines the baud rate for the radio's RF receiver. Possible options are:

  • 0: 1200 bps
  • 1: 9600 bps
  • 2: 19200 bps
  • 3: 38400 bps
  • 4: 57600 bps
  • 5: 115200 bps
See also
RF_BAUD for mapping between configuration value and baud rate.

◆ rx_frequency

uint32_t Artemis::Devices::Astrodev::tcv_config::rx_frequency

The operating frequency for the receiver.

This defines the operating frequency for the receive section of the radio. This value is a 4-byte integer.

◆ rx_modulation

Devices::Astrodev::Modulation Artemis::Devices::Astrodev::tcv_config::rx_modulation

The modulation for the receiver.

This defines the type of modulation for the receive section of the radio. This value is set using macros.

See also
Modulation for macro definitions.

◆ tx_baud_rate

uint8_t Artemis::Devices::Astrodev::tcv_config::tx_baud_rate

The RF transmit baud rate.

This defines the baud rate for the radio's RF transmitter. Possible options are:

  • 0: 1200 bps
  • 1: 9600 bps
  • 2: 19200 bps
  • 3: 38400 bps
  • 4: 57600 bps
  • 5: 115200 bps
See also
RF_BAUD for mapping between configuration value and baud rate.

◆ tx_frequency

uint32_t Artemis::Devices::Astrodev::tcv_config::tx_frequency

The operating frequency for the transmitter.

This defines the operating frequency for the transmit section of the radio. This value is a 4-byte integer.

◆ tx_modulation

Devices::Astrodev::Modulation Artemis::Devices::Astrodev::tcv_config::tx_modulation

The modulation for the transmitter.

This defines the type of modulation for the transmit section of the radio. This value is set using macros.

See also
Modulation for macro definitions.

The documentation for this struct was generated from the following file: