crtpstack

CRTP packet and ports.


Classes

CRTPPacket

CRTPPacket(header=0, data=None)

A packet that can be sent via the CRTP.

Create an empty packet with default values.


Class variables

MAX_DATA_SIZE

Instance variables

channel

Get the packet channel


data

Get the packet data


datal

Get the data in the packet as a list


datas

Get the packet data


datat

Get the data in the packet as a tuple


port

Get the packet port


Methods

def available_data_size(self)

def get_data_size(self)

def get_header(self)

Get the header


def is_data_size_valid(self)

def set_header(self, port, channel)

Set the port and channel for this packet.


CRTPPort

CRTPPort()

Lists the available ports for the CRTP.


Class variables

ALL

COMMANDER

COMMANDER_GENERIC

CONSOLE

LINKCTRL

LOCALIZATION

LOGGING

MEM

PARAM

PLATFORM

SETPOINT_HL