ax25.hh
#ifndef __SDR_AX25_HH__
#define __SDR_AX25_HH__
#include "node.hh"
namespace sdr {
class AX25: public Sink<uint8_t>, public Source
{
public:
AX25();
virtual ~AX25();
virtual void config(const Config &src_cfg);
virtual void process(const Buffer<uint8_t> &buffer, bool allow_overwrite);
static void unpackCall(const uint8_t *buffer, std::string &call, int &ssid, bool &addrExt);
protected:
uint32_t _bitstream;
uint32_t _bitbuffer;
uint32_t _state;
uint8_t _rxbuffer[512];
uint8_t *_ptr;
Buffer<uint8_t> _buffer;
};
}
#endif // __SDR_AX25_HH__
sdr::AX25::~AX25
virtual ~AX25()
Destructor.
Definition: ax25.cc:60
sdr::AX25::_state
uint32_t _state
The current state.
Definition: ax25.hh:41
sdr::Config
A collection of configuration information that is send by a source to all connected sinks to properga...
Definition: node.hh:35
sdr::AX25::_ptr
uint8_t * _ptr
Insert-pointer to the buffer.
Definition: ax25.hh:46
sdr::AX25::_bitstream
uint32_t _bitstream
The last bits.
Definition: ax25.hh:37
sdr::AX25::_rxbuffer
uint8_t _rxbuffer[512]
Message buffer.
Definition: ax25.hh:44
sdr::Sink
Typed sink.
Definition: node.hh:192
sdr
Definition: autocast.hh:8
sdr::Source
Generic source class.
Definition: node.hh:213
sdr::AX25::AX25
AX25()
Constructor.
Definition: ax25.cc:54
sdr::AX25::process
virtual void process(const Buffer< uint8_t > &buffer, bool allow_overwrite)
Processes the bit stream.
Definition: ax25.cc:92
sdr::AX25
Decodes AX25 (PacketRadio) messages from a bit stream.
Definition: ax25.hh:20
sdr::AX25::_bitbuffer
uint32_t _bitbuffer
A buffer of received bits.
Definition: ax25.hh:39
sdr::AX25::unpackCall
static void unpackCall(const uint8_t *buffer, std::string &call, int &ssid, bool &addrExt)
Unpacks a AX.25 encoded call (address).
Definition: ax25.cc:163
sdr::AX25::config
virtual void config(const Config &src_cfg)
Configures the node.
Definition: ax25.cc:65
sdr::AX25::_buffer
Buffer< uint8_t > _buffer
Output buffer.
Definition: ax25.hh:49
sdr::Buffer< uint8_t >