BDS Public
Beamlib 3.3.4
This is the Beam C++ class library.
Loading...
Searching...
No Matches
BoapMc1.h File Reference
#include <BTypes.h>
#include <BMutex.h>
#include <BSemaphore.h>
#include <BQueue.h>
#include <BFifo.h>
#include <BComms.h>

Go to the source code of this file.

Classes

struct  BoapMc1PacketHead
 
class  BoapMc1Packet
 
struct  BoapMc1Error
 
class  BoapMc1Comms
 

Enumerations

enum  BoapMc1Type { BoapMc1TypeRequest = 0x0000 , BoapMc1TypeReply = 0x8000 }
 

Functions

struct BoapMc1PacketHead __attribute__ ((aligned(8), packed))
 
BUInt32 boapMc1CommsRoundupLen (BUInt32 len)
 

Variables

const BUInt16 BoapMc1Magic = 0x5542
 
BUInt16 magic
 Packet magic pattern.
 
BUInt16 length
 Total packet length including the header.
 
BUInt16 addressTo
 Address to send to.
 
BUInt16 addressFrom
 Address packet is from.
 
BUInt16 cmd
 The RPC command or reply number.
 
BInt16 error
 Error number.
 
BUInt32 checksum
 Packet checksum, when used.
 
BoapMc1PacketHead head
 
char data [8]
 
BInt16 number
 The error number.
 
char string [32]
 The error string.
 
class BoapMc1Comms __attribute__
 

Enumeration Type Documentation

◆ BoapMc1Type

Enumerator
BoapMc1TypeRequest 
BoapMc1TypeReply 

Function Documentation

◆ __attribute__()

struct BoapMc1PacketHead __attribute__ ( (aligned(8), packed)  )

◆ boapMc1CommsRoundupLen()

BUInt32 boapMc1CommsRoundupLen ( BUInt32  len)
inline

Variable Documentation

◆ BoapMc1Magic

const BUInt16 BoapMc1Magic = 0x5542

◆ magic

BUInt16 magic

Packet magic pattern.

◆ length

BUInt16 length

Total packet length including the header.

◆ addressTo

BUInt16 addressTo

Address to send to.

◆ addressFrom

BUInt16 addressFrom

Address packet is from.

◆ cmd

BUInt16 cmd

The RPC command or reply number.

◆ error

BInt16 error

Error number.

◆ checksum

BUInt32 checksum

Packet checksum, when used.

◆ head

◆ data

char data[8]

◆ number

BInt16 number

The error number.

◆ string

char string[32]

The error string.

◆ __attribute__

class BoapMc1Comms __attribute__