|
| uint8_t | byteSum (const uint8_t *buffer, XsSize count) |
| | Calculate the sum of the values in the buffer. More...
|
| |
| static double | convertFromFloat (float f) |
| |
| static float | convertToFloat (double d) |
| |
| static void | swapEndian (void *data, const XsSize size) |
| | Swap the endianness based on the data size. More...
|
| |
| void | XsMessage_assign (XsMessage *thisPtr, XsSize dataSize) |
| | This function reinitializes the XsMessage object and reserves dataSize bytes for data. More...
|
| |
| static const uint8_t * | XsMessage_cdataAtOffset (XsMessage const *thisPtr, XsSize offset) |
| | return the const data at offset offset More...
|
| |
| int | XsMessage_compare (XsMessage const *a, XsMessage const *b) |
| | Compare the contents of the messages a and b, returning non-0 if they are different. More...
|
| |
| uint8_t | XsMessage_computeChecksum (XsMessage const *thisPtr) |
| | Computes the checksum for the message. More...
|
| |
| const uint8_t * | XsMessage_constData (XsMessage const *thisPtr, XsSize offset) |
| | This function returns a const pointer to the offset in the data of the message in thisptr. More...
|
| |
| void | XsMessage_construct (XsMessage *thisPtr) |
| | This function initializes the XsMessage object. More...
|
| |
| void | XsMessage_constructSized (XsMessage *thisPtr, XsSize dataSize) |
| | This function initializes the XsMessage object and reserves dataSize bytes for data. More...
|
| |
| void | XsMessage_copy (XsMessage *copy, XsMessage const *thisPtr) |
| | This function copies from thisPtr to copy. More...
|
| |
| void | XsMessage_copyConstruct (XsMessage *thisPtr, XsMessage const *src) |
| | Construct an XsMessage as a copy of XsMessage src. More...
|
| |
| static uint8_t * | XsMessage_dataAtOffset (XsMessage *thisPtr, XsSize offset) |
| | Get the buffer at offset offset. More...
|
| |
| XsSize | XsMessage_dataSize (XsMessage const *thisPtr) |
| | This function returns the datasize of the message in thisptr. More...
|
| |
| void | XsMessage_deleteData (XsMessage *thisPtr, XsSize count, XsSize offset) |
| | Remove count bytes of data from the message at offset. More...
|
| |
| void | XsMessage_destruct (XsMessage *thisPtr) |
| | This function clears the data in the message. More...
|
| |
| int | XsMessage_empty (XsMessage const *thisPtr) |
| | Test if this message is empty. More...
|
| |
| static void | XsMessage_ensureDataSize (XsMessage *thisPtr, XsSize offset, XsSize sizeofValue) |
| | Make sure the data buffer is large enough to hold a new data item of sizeofValue. More...
|
| |
| const XsMessageHeader * | XsMessage_getConstHeader (XsMessage const *thisPtr) |
| |
| const uint8_t * | XsMessage_getDataBuffer (XsMessage const *thisPtr, XsSize offset) |
| | Returns a const pointer to the data buffer of the message. More...
|
| |
| uint8_t | XsMessage_getDataByte (XsMessage const *thisPtr, XsSize offset) |
| | Returns the byte value at offset in the data of the message. More...
|
| |
| double | XsMessage_getDataDouble (XsMessage const *thisPtr, XsSize offset) |
| | Returns the double at offset in the data of the message. More...
|
| |
| double | XsMessage_getDataF1220 (XsMessage const *thisPtr, XsSize offset) |
| | Returns the F12.20 value at offset in the data of the message. More...
|
| |
| float | XsMessage_getDataFloat (XsMessage const *thisPtr, XsSize offset) |
| | Returns the float value at offset in the data of the message. More...
|
| |
| double | XsMessage_getDataFP1632 (XsMessage const *thisPtr, XsSize offset) |
| | Returns the F16.32 value at offset in the data of the message. More...
|
| |
| void | XsMessage_getDataFPValuesById (XsMessage const *thisPtr, XsDataIdentifier dataIdentifier, double *dest, XsSize offset, XsSize numValues) |
| | Return current data values as double, conversion depends on outputSetting. More...
|
| |
| uint32_t | XsMessage_getDataLong (XsMessage const *thisPtr, XsSize offset) |
| | Returns the long value at offset in the data of the message. More...
|
| |
| uint64_t | XsMessage_getDataLongLong (XsMessage const *thisPtr, XsSize offset) |
| | Returns the long value at offset in the data of the message. More...
|
| |
| void | XsMessage_getDataRealValuesById (XsMessage const *thisPtr, XsDataIdentifier dataIdentifier, XsReal *dest, XsSize offset, XsSize numValues) |
| | Return current data values as XsReal, conversion is done automatically based on data identifier. More...
|
| |
| uint16_t | XsMessage_getDataShort (XsMessage const *thisPtr, XsSize offset) |
| | Returns the short value at offset in the data of the message. More...
|
| |
| void | XsMessage_getEndianCorrectData (XsMessage const *thisPtr, void *value, XsSize size, XsSize offset) |
| | Get data of size size at offset, and put it byteswapped into value. More...
|
| |
| XsMessageHeader * | XsMessage_getHeader (XsMessage *thisPtr) |
| | Returns a pointer to the message header for this message. More...
|
| |
| const uint8_t * | XsMessage_getMessageStart (XsMessage const *thisPtr) |
| | This function returns a const pointer to the header of the message in thisptr. More...
|
| |
| XsSize | XsMessage_getTotalMessageSize (XsMessage const *thisPtr) |
| | Return the length of the message buffer. More...
|
| |
| void | XsMessage_insertData (XsMessage *thisPtr, XsSize count, XsSize offset) |
| | Create count bytes of empty space at offset in this message. More...
|
| |
| int | XsMessage_isChecksumOk (XsMessage const *thisPtr) |
| | Returns non-zero if the checksum inside the message is correct for the message, zero otherwise. More...
|
| |
| void | XsMessage_load (XsMessage *thisPtr, XsSize msgSize, unsigned char const *src) |
| | This function initializes the XsMessage object and reserves msgSize bytes for data, it then copies in the data from src. More...
|
| |
| void | XsMessage_recomputeChecksum (XsMessage *thisPtr) |
| | Update the checksum for the message. More...
|
| |
| void | XsMessage_resizeData (XsMessage *thisPtr, XsSize newSize) |
| | Resize the buffer of message to newSize bytes. More...
|
| |
| void | XsMessage_setBusId (XsMessage *thisPtr, uint8_t busId) |
| | Set the bus id for this message to busId. More...
|
| |
| void | XsMessage_setDataBuffer (XsMessage *thisPtr, const uint8_t *buffer, XsSize size, XsSize offset) |
| | Puts size number of bytes from buffer into the message at offset. More...
|
| |
| void | XsMessage_setDataByte (XsMessage *thisPtr, uint8_t value, XsSize offset) |
| | Set the byte at offset in the message to value. More...
|
| |
| void | XsMessage_setDataDouble (XsMessage *thisPtr, double value, XsSize offset) |
| | Sets the double at offset in the message to value. More...
|
| |
| void | XsMessage_setDataF1220 (XsMessage *thisPtr, double value, XsSize offset) |
| | Sets the F12.20 at offset in the message to value. More...
|
| |
| void | XsMessage_setDataFloat (XsMessage *thisPtr, float value, XsSize offset) |
| | Sets the float at offset in the message to value. More...
|
| |
| void | XsMessage_setDataFP1632 (XsMessage *thisPtr, double value, XsSize offset) |
| | Sets the F16.32 at offset in the message to value. More...
|
| |
| void | XsMessage_setDataFPValuesById (XsMessage *thisPtr, XsDataIdentifier dataIdentifier, double const *data, XsSize offset, XsSize numValues) |
| | Write a number of floating/fixed point values into to the data buffer, conversion depends on outputSettings. More...
|
| |
| void | XsMessage_setDataLong (XsMessage *thisPtr, uint32_t value, XsSize offset) |
| | Sets the long at offset in the message to value. More...
|
| |
| void | XsMessage_setDataLongLong (XsMessage *thisPtr, uint64_t value, XsSize offset) |
| | Sets the long at offset in the message to value. More...
|
| |
| void | XsMessage_setDataRealValuesById (XsMessage *thisPtr, XsDataIdentifier dataIdentifier, XsReal const *data, XsSize offset, XsSize numValues) |
| | Write a number of floating/fixed point values into to the data buffer, conversion depends on data identifier. More...
|
| |
| void | XsMessage_setDataShort (XsMessage *thisPtr, uint16_t value, XsSize offset) |
| | Sets the short at offset in the message to value. More...
|
| |
| void | XsMessage_setEndianCorrectData (XsMessage *thisPtr, void const *value, XsSize size, XsSize offset) |
| | Set value value of size size byteswapped at offset. More...
|
| |
| void | XsMessage_setMessageId (XsMessage *thisPtr, enum XsXbusMessageId msgId) |
| | Set the message id for this message to msgId. More...
|
| |
| void | XsMessage_swap (XsMessage *a, XsMessage *b) |
| | Swap the contents of a and b. More...
|
| |
| void | XsMessage_toHexString (XsMessage const *thisPtr, XsSize maxBytes, XsString *resultValue) |
| | Return a string containing the first maxBytes bytes of the message in hex format. More...
|
| |
| static void | XsMessage_updateChecksumWithValue (XsMessage *thisPtr, const void *value, XsSize sizeofValue, XsSize offset) |
| | Update the message checksum with the passed value. More...
|
| |