|
| | GvcpDiscoveryAcknowledgeLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
| |
| | GvcpDiscoveryAcknowledgeLayer (GvcpResponseStatus status=GvcpResponseStatus::Success, uint16_t ackId=0) |
| |
| GvcpVersion | getVersion () const |
| |
| void | setVersion (const GvcpVersion &version) |
| |
| MacAddress | getMacAddress () const |
| |
| void | setMacAddress (const MacAddress &macAddress) |
| |
| IPv4Address | getIpAddress () const |
| |
| void | setIpAddress (const IPv4Address &ipAddress) |
| |
| IPv4Address | getSubnetMask () const |
| |
| void | setSubnetMask (const IPv4Address &subnetMask) |
| |
| IPv4Address | getGatewayIpAddress () const |
| |
| void | setGatewayIpAddress (const IPv4Address &gatewayIpAddress) |
| |
| std::string | getManufacturerName () const |
| |
| void | setManufacturerName (const std::string &manufacturerName) |
| |
| std::string | getModelName () const |
| |
| void | setModelName (const std::string &modelName) |
| |
| std::string | getDeviceVersion () const |
| |
| void | setDeviceVersion (const std::string &deviceVersion) |
| |
| std::string | getManufacturerSpecificInformation () const |
| |
| void | setManufacturerSpecificInformation (const std::string &info) |
| |
| std::string | getSerialNumber () const |
| |
| void | setSerialNumber (const std::string &serialNumber) |
| |
| std::string | getUserDefinedName () const |
| |
| void | setUserDefinedName (const std::string &userDefinedName) |
| |
| size_t | getHeaderLen () const override |
| |
| | GvcpAcknowledgeLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
| |
| | GvcpAcknowledgeLayer (GvcpResponseStatus status, GvcpCommand command, uint16_t ackId=0) |
| |
| GvcpResponseStatus | getStatus () const |
| |
| void | setStatus (GvcpResponseStatus status) |
| |
| uint16_t | getAckId () const |
| |
| void | setAckId (uint16_t ackId) |
| |
| GvcpCommand | getCommand () const override |
| |
| uint16_t | getDataSize () const override |
| |
|
void | computeCalculateFields () override |
| | Calculate the data size field in the header according to the size of the data that follows the header.
|
| |
| std::string | toString () const override |
| |
|
void | parseNextLayer () override |
| | Creates a PayloadLayer from the rest of the message, if there is data after this layer.
|
| |
| OsiModelLayer | getOsiModelLayer () const override |
| |
| | ~Layer () override |
| |
| Layer * | getNextLayer () const |
| |
| Layer * | getPrevLayer () const |
| |
| ProtocolType | getProtocol () const |
| |
| bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const |
| |
| uint8_t * | getData () const |
| |
| size_t | getDataLen () const |
| |
| uint8_t * | getLayerPayload () const |
| |
| size_t | getLayerPayloadSize () const |
| |
| bool | isAllocatedToPacket () const |
| |
| void | copyData (uint8_t *toArr) const |
| | Copy the raw data of this layer to another array. More...
|
| |
| size_t | copyData (uint8_t *dest, size_t destSize) const |
| | Copy the raw data of this layer to another array, with a specified maximum size. More...
|
| |
| void | serialize (ISerializer &serializer) const |
| |
| uint8_t * | getDataPtr (size_t offset=0) const override |
| |
|
| void | serializeLayer (ObjectScope &serializer) const override |
| |
| | GvcpAcknowledgeLayer (GvcpResponseStatus status, GvcpCommand command, uint16_t ackId, size_t bodyLen) |
| |
| void | initLayer (size_t dataLen) |
| |
| Packet * | getAttachedPacket () |
| | Get a pointer to the Packet this layer is attached to (if any). More...
|
| |
| Packet const * | getAttachedPacket () const |
| | Get a pointer to the Packet this layer is attached to (if any). More...
|
| |
| void | allocData (size_t dataLen, bool zeroInit=true) |
| | Requests the layer to allocate a new data buffer of the specified length. More...
|
| |
| template<typename T , typename... Args> |
| Layer * | constructNextLayer (uint8_t *data, size_t dataLen, Args &&... extraArgs) |
| | Construct the next layer in the protocol stack. No validation is performed on the data. More...
|
| |
| template<typename T , typename... Args> |
| Layer * | constructNextLayer (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
| |
| template<typename TFactory , typename... Args> |
| Layer * | constructNextLayerFromFactory (TFactory factoryFn, uint8_t *data, size_t dataLen, Args &&... extraArgs) |
| | Construct the next layer in the protocol stack using a factory functor. More...
|
| |
| template<typename TFactory , typename... Args> |
| Layer * | constructNextLayerFromFactory (TFactory factoryFn, uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
| | Construct the next layer in the protocol stack using a factory functor. More...
|
| |
| template<typename T , typename... Args> |
| Layer * | tryConstructNextLayer (uint8_t *data, size_t dataLen, Args &&... extraArgs) |
| |
| template<typename T , typename... Args> |
| Layer * | tryConstructNextLayer (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
| |
| template<typename T , typename TFallback , typename... Args> |
| Layer * | tryConstructNextLayerWithFallback (uint8_t *data, size_t dataLen, Args &&... extraArgs) |
| | Try to construct the next layer in the protocol stack with a fallback option. More...
|
| |
| template<typename T , typename TFallback , typename... Args> |
| Layer * | tryConstructNextLayerWithFallback (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
| |
| template<typename TFallback , typename TFactory , typename... Args> |
| Layer * | tryConstructNextLayerFromFactoryWithFallback (TFactory factoryFn, uint8_t *data, size_t dataLen, Args &&... extraArgs) |
| | Try to construct the next layer in the protocol stack using a factory functor with a fallback option. More...
|
| |
| template<typename TFallback , typename TFactory , typename... Args> |
| Layer * | tryConstructNextLayerFromFactoryWithFallback (TFactory factoryFn, uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
| | Try to construct the next layer in the protocol stack using a factory functor with a fallback option. More...
|
| |
|
| enum class | GvcpResponseStatus : uint16_t {
Success = 0x0000
, PacketResend = 0x0100
, NotImplemented = 0x8001
, InvalidParameter = 0x8002
,
InvalidAddress = 0x8003
, WriteProtect = 0x8004
, BadAlignment = 0x8005
, AccessDenied = 0x8006
,
Busy = 0x8007
, LocalProblem = 0x8008
, MsgMismatch = 0x8009
, InvalidProtocol = 0x800A
,
NoMsg = 0x800B
, PacketUnavailable = 0x800C
, DataOverrun = 0x800D
, InvalidHeader = 0x800E
,
WrongConfig = 0x800F
, PacketNotYetAvailable = 0x8010
, PacketAndPrevRemovedFromMemory = 0x8011
, PacketRemovedFromMemory = 0x8012
,
NoRefTime = 0x8013
, PacketTemporarilyUnavailable = 0x8014
, Overflow = 0x8015
, ActionLate = 0x8016
,
LeaderTrailerOverflow = 0x8017
, Error = 0x8FFF
, Unknown = 0xFFFF
} |
| |
| enum class | GvcpCommand : uint16_t {
DiscoveredCmd = 0x0002
, DiscoveredAck = 0x0003
, ForceIpCmd = 0x0004
, ForceIpAck = 0x0005
,
PacketResendCmd = 0x0040
, PacketResendAck = 0x0041
, ReadRegCmd = 0x0080
, ReadRegAck = 0x0081
,
WriteRegCmd = 0x0082
, WriteRegAck = 0x0083
, ReadMemCmd = 0x0084
, ReadMemAck = 0x0085
,
WriteMemCmd = 0x0086
, WriteMemAck = 0x0087
, PendingAck = 0x0089
, EventCmd = 0x00C0
,
EventAck = 0x00C1
, EventDataCmd = 0x00C2
, EventDataAck = 0x00C3
, ActionCmd = 0x0100
,
ActionAck = 0x0101
, Unknown = 0xFFFF
} |
| |
| template<typename T > |
| static bool | canReinterpretAs (const uint8_t *data, size_t dataLen) |
| | Check if the data is large enough to reinterpret as a type. More...
|
| |
Represents a GVCP discovery acknowledge (DISCOVERY_ACK)