libdoip  0.1.0
DoIP (Diagnostics over Internet Protocol) ISO 13400 C++17 Library
DoIPAddress.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <array>
#include <iomanip>
#include <iostream>
#include "ByteArray.h"
Include dependency graph for DoIPAddress.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 doip
 

Typedefs

using doip::DoIPAddress = uint16_t
 Represents a 16-bit DoIP address consisting of high and low significant bytes. More...
 

Functions

bool doip::isValidSourceAddress (const uint8_t *data, size_t offset=0)
 Check if source address is valid. More...
 
bool doip::tryReadAddressFrom (const uint8_t *data, size_t offset, DoIPAddress &address)
 Try read the DoIP address from a byte array. More...
 
DoIPAddress doip::readAddressFrom (const uint8_t *data, size_t offset=0)
 Reads the DoIP address from a byte array. More...
 

Variables

constexpr size_t doip::DOIP_ADDRESS_SIZE = 2
 
constexpr DoIPAddress doip::ZERO_ADDRESS = 0x0000
 
constexpr DoIPAddress doip::MIN_SOURCE_ADDRESS = 0xE000
 
constexpr DoIPAddress doip::MAX_SOURCE_ADDRESS = 0xE3FF