RADIO

This is the interface for accessing radios (such as ISM band radios).

Details

define RADIO_VERSION

define RADIO_IOC_CHAR

define I_RADIO_GETVERSION

define I_RADIO_GETINFO

This request reads the radio attributes.

Example:

ioctl(fildes, I_RADIO_GETINFO);

define I_RADIO_SETATTR

This request sets the radio attributes.

Example:

ioctl(fildes, I_RADIO_SETATTR);

define I_RADIO_SETFREQUENCY

This request sets the radio attributes.

Example:

ioctl(fildes, I_RADIO_SETATTR);

define I_RADIO_SETMODE

This request sets the radio mode

Example:

ioctl(fildes, I_RADIO_SETMODE, RADIO_MODE_TX);

define I_RADIO_SETPACKETSIZE

This request sets the radio packet size.

Example:

ioctl(fildes, I_RADIO_SETPACKET_SIZE, 24);

define I_RADIO_TOTAL

enum @24
  • RADIO_MODE_STANDBY
  • RADIO_MODE_SLEEP
  • RADIO_MODE_IDLE
  • RADIO_MODE_TX
  • RADIO_MODE_RX

struct::radio_attr_t

u8 mode

u8 resd

u16 preamble_len

u16 fixed_len

u16 payload_len

u32 code_rate

LoRa Code rate

u32 data_rate

Radio data rate

u32 freq

Radio Frequency

u32 * hopping_table

A pointer to the frequency hopping table

u16 hopping_entries

The number of entries in the frequency hopping table

u16 power

The power output


X

Thanks for Coming!

Subscribe to news and updates