Go to the documentation of this file.
5 #ifndef UAVCAN_TRANSPORT_FRAME_HPP_INCLUDED
6 #define UAVCAN_TRANSPORT_FRAME_HPP_INCLUDED
19 enum { PayloadCapacity = 7 };
37 start_of_transfer_(false),
38 end_of_transfer_(false),
48 transfer_type_(transfer_type),
49 data_type_id_(data_type_id),
51 src_node_id_(src_node_id),
52 dst_node_id_(dst_node_id),
53 transfer_id_(transfer_id),
54 start_of_transfer_(false),
55 end_of_transfer_(false),
90 bool parse(
const CanFrame& can_frame);
91 bool compile(
CanFrame& can_frame)
const;
118 , iface_index_(iface_index)
144 #endif // UAVCAN_TRANSPORT_FRAME_HPP_INCLUDED
MonotonicTime getMonotonicTimestamp() const
uint8_t getPayloadCapacity() const
UAVCAN_EXPORT EnableIf<!IsSameType< R, Array< T, ArrayMode, MaxSize > >::Result, bool >::Type operator==(const R &rhs, const Array< T, ArrayMode, MaxSize > &lhs)
UtcTime getUtcTimestamp() const
TransferType transfer_type_
Implicitly convertible to/from uavcan.Timestamp.
uint8_t getIfaceIndex() const
bool isStartOfTransfer() const
bool operator!=(const Frame &rhs) const
TransferPriority getPriority() const
TransferID getTransferID() const
static const uint8_t NumTransferTypes
void setEndOfTransfer(bool x)
TransferPriority transfer_priority_
@ TransferTypeMessageBroadcast
void setPriority(TransferPriority priority)
unsigned getPayloadLen() const
static std::string toString(long x)
static DataTypeKind getDataTypeKindForTransferType(const TransferType tt)
RxFrame(const Frame &frame, MonotonicTime ts_mono, UtcTime ts_utc, uint8_t iface_index)
Frame(DataTypeID data_type_id, TransferType transfer_type, NodeID src_node_id, NodeID dst_node_id, TransferID transfer_id)
bool isValidForDataTypeKind(DataTypeKind dtkind) const
NodeID getDstNodeID() const
TransferType getTransferType() const
void setStartOfTransfer(bool x)
NodeID getSrcNodeID() const
const uint8_t * getPayloadPtr() const
DataTypeID getDataTypeID() const
uint_fast8_t payload_len_
bool isEndOfTransfer() const