Classes | Defines | Typedefs | Enumerations | Functions | Variables
crtp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  crtp
struct  crtpConsoleResponse
struct  crtpExternalPositionUpdate
struct  crtpLogControlResponse
struct  crtpLogCreateBlockRequest
struct  crtpLogDataResponse
struct  crtpLogGetInfoRequest
struct  crtpLogGetInfoResponse
struct  crtpLogGetItemRequest
struct  crtpLogGetItemResponse
struct  crtpLogResetRequest
struct  crtpLogStartRequest
struct  crtpLogStopRequest
struct  crtpPacket_t
struct  crtpParamReadRequest
struct  crtpParamTocGetInfoRequest
struct  crtpParamTocGetInfoResponse
struct  crtpParamTocGetItemRequest
struct  crtpParamTocGetItemResponse
struct  crtpParamValueResponse
struct  crtpParamWriteRequest< T >
struct  crtpPlatformRSSIAck
struct  crtpSetpointRequest
struct  logBlockItem

Defines

#define CRTP_MAX_DATA_SIZE   30

Typedefs

typedef crtpParamTocGetItemResponse Response

Enumerations

enum  crtpLogControlResult {
  crtpLogControlResultOk = 0, crtpLogControlResultOutOfMemory = 12, crtpLogControlResultCmdNotFound = 8, crtpLogControlResultWrongBlockId = 2,
  crtpLogControlResultBlockTooLarge = 7, crtpLogControlResultBlockExists = 17
}

Functions

struct crtp __attribute__ ((packed))
constexpr crtp (uint8_t port, uint8_t channel)
 crtp (uint8_t byte)
 crtpExternalPositionUpdate (float x, float y, float z)
 crtpLogCreateBlockRequest ()
 crtpLogGetInfoRequest ()
 crtpLogGetItemRequest (uint8_t id)
 crtpLogResetRequest ()
 crtpLogStartRequest (uint8_t id, uint8_t period)
 crtpLogStopRequest (uint8_t id)
 crtpParamReadRequest (uint8_t id)
 crtpParamTocGetInfoRequest ()
 crtpParamTocGetItemRequest (uint8_t id)
 crtpParamWriteRequest (uint8_t id, const T &value)
 crtpSetpointRequest (float roll, float pitch, float yawrate, uint16_t thrust)
static bool match (const Crazyradio::Ack &response)
bool operator== (const crtp &other) const
bool operator== (const crtpParamTocGetItemRequest &other) const
bool operator== (const crtpParamTocGetInfoRequest &other) const
bool operator== (const crtpParamReadRequest &other) const
bool operator== (const crtpLogGetInfoRequest &other) const
bool operator== (const crtpLogGetItemRequest &other) const

Variables

union {
   float   valueFloat
   int16_t   valueInt16
   int32_t   valueInt32
   int8_t   valueInt8
   uint16_t   valueUint16
   uint32_t   valueUint32
   uint8_t   valueUint8
}; 
typedef __attribute__
uint8_t blockId
uint8_t channel
const uint8_t command
uint32_t crc
uint8_t data [26]
uint8_t group
const crtp header
uint8_t id
logBlockItem items [16]
uint8_t length
uint8_t link
uint32_t log_crc
uint8_t log_len
uint8_t log_max_ops
uint8_t log_max_packet
uint8_t logType
uint8_t numParam
uint8_t period
float pitch
uint8_t port
uint8_t readonly
crtpParamTocGetItemRequest request
uint8_t requestByte1
uint8_t res0
uint8_t result
float roll
uint8_t sign
char text [28]
uint16_t thrust
uint16_t timestampHi
uint8_t timestampLo
uint8_t type
const T value
float x
float y
float yawrate
float z

Define Documentation

#define CRTP_MAX_DATA_SIZE   30

Definition at line 3 of file crtp.h.


Typedef Documentation

Definition at line 89 of file crtp.h.


Enumeration Type Documentation

Enumerator:
crtpLogControlResultOk 
crtpLogControlResultOutOfMemory 
crtpLogControlResultCmdNotFound 
crtpLogControlResultWrongBlockId 
crtpLogControlResultBlockTooLarge 
crtpLogControlResultBlockExists 

Definition at line 375 of file crtp.h.


Function Documentation

struct crtp __attribute__ ( (packed)  )
constexpr __attribute__::crtp ( uint8_t  port,
uint8_t  channel 
)

Definition at line 30 of file crtp.h.

__attribute__::crtp ( uint8_t  byte)

Definition at line 37 of file crtp.h.

__attribute__::crtpExternalPositionUpdate ( float  x,
float  y,
float  z 
)

Definition at line 432 of file crtp.h.

Definition at line 302 of file crtp.h.

Definition at line 230 of file crtp.h.

Definition at line 270 of file crtp.h.

Definition at line 374 of file crtp.h.

__attribute__::crtpLogStartRequest ( uint8_t  id,
uint8_t  period 
)

Definition at line 347 of file crtp.h.

Definition at line 362 of file crtp.h.

Definition at line 147 of file crtp.h.

Definition at line 114 of file crtp.h.

Definition at line 77 of file crtp.h.

__attribute__::crtpParamWriteRequest ( uint8_t  id,
const T &  value 
)

Definition at line 164 of file crtp.h.

__attribute__::crtpSetpointRequest ( float  roll,
float  pitch,
float  yawrate,
uint16_t  thrust 
)

Definition at line 207 of file crtp.h.

static bool match ( const Crazyradio::Ack response) [static]

Definition at line 95 of file crtp.h.

bool __attribute__::operator== ( const crtp other) const

Definition at line 44 of file crtp.h.

bool __attribute__::operator== ( const crtpParamTocGetItemRequest other) const

Definition at line 85 of file crtp.h.

bool __attribute__::operator== ( const crtpParamTocGetInfoRequest other) const

Definition at line 120 of file crtp.h.

bool __attribute__::operator== ( const crtpParamReadRequest other) const

Definition at line 154 of file crtp.h.

bool __attribute__::operator== ( const crtpLogGetInfoRequest other) const

Definition at line 236 of file crtp.h.

bool __attribute__::operator== ( const crtpLogGetItemRequest other) const

Definition at line 277 of file crtp.h.


Variable Documentation

union { ... }
uint8_t blockId

Definition at line 417 of file crtp.h.

uint8_t channel

Definition at line 48 of file crtp.h.

uint8_t command

Definition at line 92 of file crtp.h.

uint32_t crc

Definition at line 135 of file crtp.h.

uint8_t data[26]

Definition at line 420 of file crtp.h.

uint8_t group

Definition at line 107 of file crtp.h.

const crtp header

Definition at line 91 of file crtp.h.

uint8_t id

Definition at line 93 of file crtp.h.

Definition at line 311 of file crtp.h.

uint8_t length

Definition at line 102 of file crtp.h.

uint8_t link

Definition at line 49 of file crtp.h.

uint32_t log_crc

Definition at line 259 of file crtp.h.

uint8_t log_len

Definition at line 257 of file crtp.h.

uint8_t log_max_ops

Definition at line 263 of file crtp.h.

uint8_t log_max_packet

Definition at line 261 of file crtp.h.

uint8_t logType

Definition at line 288 of file crtp.h.

uint8_t numParam

Definition at line 134 of file crtp.h.

uint8_t period

Definition at line 360 of file crtp.h.

float pitch

Definition at line 221 of file crtp.h.

uint8_t port

Definition at line 50 of file crtp.h.

uint8_t readonly

Definition at line 106 of file crtp.h.

Definition at line 101 of file crtp.h.

uint8_t requestByte1

Definition at line 404 of file crtp.h.

uint8_t res0

Definition at line 105 of file crtp.h.

uint8_t result

Definition at line 405 of file crtp.h.

float roll

Definition at line 220 of file crtp.h.

uint8_t sign

Definition at line 104 of file crtp.h.

char text

Definition at line 108 of file crtp.h.

uint16_t thrust

Definition at line 223 of file crtp.h.

uint16_t timestampHi

Definition at line 419 of file crtp.h.

uint8_t timestampLo

Definition at line 418 of file crtp.h.

uint8_t type

Definition at line 103 of file crtp.h.

const T value

Definition at line 175 of file crtp.h.

float valueFloat

Definition at line 198 of file crtp.h.

int16_t valueInt16

Definition at line 195 of file crtp.h.

int32_t valueInt32

Definition at line 197 of file crtp.h.

int8_t valueInt8

Definition at line 193 of file crtp.h.

uint16_t valueUint16

Definition at line 194 of file crtp.h.

uint32_t valueUint32

Definition at line 196 of file crtp.h.

uint8_t valueUint8

Definition at line 192 of file crtp.h.

float x

Definition at line 443 of file crtp.h.

float y

Definition at line 444 of file crtp.h.

float yawrate

Definition at line 222 of file crtp.h.

float z

Definition at line 445 of file crtp.h.



crazyflie_cpp
Author(s): Wolfgang Hoenig
autogenerated on Sun Oct 8 2017 02:47:59