Wirepas SDK
pack.h
Go to the documentation of this file.
1/* Copyright 2019 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
14#ifndef PACK_H_
15#define PACK_H_
16
17#include <stdlib.h>
18#include <stdint.h>
19
28uint32_t Pack_unpackLe(const uint8_t * bytes, size_t num_bytes);
38void Pack_packLe(void * bytes, uint32_t value, size_t num_bytes);
39
40#endif // PACK_H_
uint32_t Pack_unpackLe(const uint8_t *bytes, size_t num_bytes)
Convert 1 to 4 little endian bytes to a native unsigned integer.
void Pack_packLe(void *bytes, uint32_t value, size_t num_bytes)
Convert native unsigned integer to 1 to 4 little endian bytes.