6 #ifndef OPENER_ENDIANCONV_H_
7 #define OPENER_ENDIANCONV_H_
85 #ifdef OPENER_SUPPORT_64BIT_DATATYPES
87 EipUint64 GetLintFromMessage(
const EipUint8 **
const buffer);
97 int AddLintToMessage(
const EipUint64 pa_unData,
112 EipByte **communication_buffer);
void DetermineEndianess(void)
Detects Endianess of the platform and sets global g_nOpENerPlatformEndianess variable accordingly...
CipUdint GetUdintFromMessage(const CipOctet **const buffer_address)
int FillNextNMessageOctetsWithValueAndMoveToNextPosition(CipOctet value, unsigned int n, CipOctet **message)
int MoveMessageNOctets(const int n, const CipOctet **message_runner)
EipUint32 GetDintFromMessage(const EipUint8 **const buffer)
Get an 32Bit integer from the network buffer.
EipUint8 GetSintFromMessage(const EipUint8 **const buffer)
Reads EIP_UINT8 from *buffer and converts little endian to host.
int EncapsulateIpAddress(EipUint16 port, EipUint32 address, EipByte **communication_buffer)
Encapsulate the sockaddr information as necessary for the Common Packet Format data items...
CipByte GetByteFromMessage(const CipOctet **const buffer_address)
uint8_t CipOctet
Data types as defined in the CIP Specification Vol 1 Appendix C.
int AddIntToMessage(const EipUint16 data, EipUint8 **const buffer)
Write an 16Bit integer to the network buffer.
int AddDintToMessage(const EipUint32 data, EipUint8 **const buffer)
Write an 32Bit integer to the network buffer.
CipWord GetWordFromMessage(const CipOctet **const buffer_address)
int AddSintToMessage(const EipUint8 data, EipUint8 **const buffer)
converts UINT8 data from host to little endian an writes it to buffer.
CipUint GetUintFromMessage(const CipOctet **const buffer_address)
uint8_t EipByte
EIP Data type definitions.
CipUsint GetUsintFromMessage(const CipOctet **const buffer_address)
EipUint16 GetIntFromMessage(const EipUint8 **const buffer)
Get an 16Bit integer from the network buffer, and moves pointer beyond the 16 bit value...
int GetEndianess(void)
Return the endianess identified on system startup.
int FillNextNMessageOctetsWith(CipOctet value, unsigned int n, CipOctet **message)