IQRF Gateway Daemon
Typedefs | Enumerations | Variables
UdpMessage.h File Reference
#include <string>

Go to the source code of this file.

Typedefs

typedef std::basic_string< unsigned char > ustring
 

Enumerations

enum  IqrfWriteResults { wr_OK = 0x50, wr_Error_Len = 0x60, wr_Error_SPI = 0x61, wr_Error_IQRF = 0x62 }
 
enum  UdpHeader {
  gwAddr, cmd, subcmd, res0,
  res1, pacid_H, pacid_L, dlen_H,
  dlen_L
}
 
enum  UdpGwStatus {
  trStatus, unused2, supplyExt, timeSec,
  timeMin, timeHour, timeWday, timeMday,
  timeMon, timeYear, unused11, unused12
}
 

Variables

const unsigned IQRF_UDP_BUFFER_SIZE = 1024
 
const unsigned char IQRF_UDP_GW_ADR = 0x20
 
const unsigned char IQRF_UDP_HEADER_SIZE = 9
 
const unsigned char IQRF_UDP_CRC_SIZE = 2
 
const unsigned char IQRF_UDP_GET_GW_INFO = 0x01
 
const unsigned char IQRF_UDP_GET_GW_STATUS = 0x02
 
const unsigned char IQRF_UDP_WRITE_IQRF = 0x03
 
const unsigned char IQRF_UDP_IQRF_SPI_DATA = 0x04
 
const unsigned char IQRF_UDP_ACK = 0x50
 
const unsigned char IQRF_UDP_NAK = 0x60
 
const unsigned char IQRF_UDP_BUS_BUSY = 0x61
 

Typedef Documentation

◆ ustring

typedef std::basic_string<unsigned char> ustring

Copyright 2016-2017 MICRORISC s.r.o.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Enumeration Type Documentation

◆ IqrfWriteResults

Enumerator
wr_OK 
wr_Error_Len 
wr_Error_SPI 
wr_Error_IQRF 

◆ UdpGwStatus

Enumerator
trStatus 
unused2 
supplyExt 
timeSec 
timeMin 
timeHour 
timeWday 
timeMday 
timeMon 
timeYear 
unused11 
unused12 

◆ UdpHeader

enum UdpHeader
Enumerator
gwAddr 
cmd 
subcmd 
res0 
res1 
pacid_H 
pacid_L 
dlen_H 
dlen_L 

Variable Documentation

◆ IQRF_UDP_ACK

const unsigned char IQRF_UDP_ACK = 0x50

◆ IQRF_UDP_BUFFER_SIZE

const unsigned IQRF_UDP_BUFFER_SIZE = 1024

◆ IQRF_UDP_BUS_BUSY

const unsigned char IQRF_UDP_BUS_BUSY = 0x61

◆ IQRF_UDP_CRC_SIZE

const unsigned char IQRF_UDP_CRC_SIZE = 2

◆ IQRF_UDP_GET_GW_INFO

const unsigned char IQRF_UDP_GET_GW_INFO = 0x01

◆ IQRF_UDP_GET_GW_STATUS

const unsigned char IQRF_UDP_GET_GW_STATUS = 0x02

◆ IQRF_UDP_GW_ADR

const unsigned char IQRF_UDP_GW_ADR = 0x20

◆ IQRF_UDP_HEADER_SIZE

const unsigned char IQRF_UDP_HEADER_SIZE = 9

◆ IQRF_UDP_IQRF_SPI_DATA

const unsigned char IQRF_UDP_IQRF_SPI_DATA = 0x04

◆ IQRF_UDP_NAK

const unsigned char IQRF_UDP_NAK = 0x60

◆ IQRF_UDP_WRITE_IQRF

const unsigned char IQRF_UDP_WRITE_IQRF = 0x03