Embedded SDK
Embedded SDK
Functions
write.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for write.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void write_u16_be (const uint8_t *ptr, size_t offset, uint16_t value)
 
void write_u32_be (uint8_t *ptr, size_t offset, uint32_t value)
 
void write_u64_be (uint8_t *ptr, size_t offset, uint64_t value)
 
void write_u16_le (uint8_t *ptr, size_t offset, uint16_t value)
 
void write_u32_le (uint8_t *ptr, size_t offset, uint32_t value)
 
void write_u64_le (uint8_t *ptr, size_t offset, uint64_t value)
 

Function Documentation

◆ write_u16_be()

void write_u16_be ( const uint8_t ptr,
size_t  offset,
uint16_t  value 
)

Write 16-bit unsigned integer value as Big Endian.

Parameters
[out]ptrPointer to output byte buffer.
[in]offsetOffset in the output byte buffer.
[in]value16-bit unsigned integer to write in output byte buffer as Big Endian.

◆ write_u16_le()

void write_u16_le ( uint8_t ptr,
size_t  offset,
uint16_t  value 
)

Write 16-bit unsigned integer value as Little Endian.

Parameters
[out]ptrPointer to output byte buffer.
[in]offsetOffset in the output byte buffer.
[in]value16-bit unsigned integer to write in output byte buffer as Little Endian.

Definition at line 46 of file write.c.

◆ write_u32_be()

void write_u32_be ( uint8_t ptr,
size_t  offset,
uint32_t  value 
)

Write 32-bit unsigned integer value as Big Endian.

Parameters
[out]ptrPointer to output byte buffer.
[in]offsetOffset in the output byte buffer.
[in]value32-bit unsigned integer to write in output byte buffer as Big Endian.

Definition at line 26 of file write.c.

◆ write_u32_le()

void write_u32_le ( uint8_t ptr,
size_t  offset,
uint32_t  value 
)

Write 32-bit unsigned integer value as Little Endian.

Parameters
[out]ptrPointer to output byte buffer.
[in]offsetOffset in the output byte buffer.
[in]value32-bit unsigned integer to write in output byte buffer as Little Endian.

Definition at line 52 of file write.c.

◆ write_u64_be()

void write_u64_be ( uint8_t ptr,
size_t  offset,
uint64_t  value 
)

Write 64-bit unsigned integer value as Big Endian.

Parameters
[out]ptrPointer to output byte buffer.
[in]offsetOffset in the output byte buffer.
[in]value64-bit unsigned integer to write in output byte buffer as Big Endian.

Definition at line 34 of file write.c.

◆ write_u64_le()

void write_u64_le ( uint8_t ptr,
size_t  offset,
uint64_t  value 
)

Write 64-bit unsigned integer value as Little Endian.

Parameters
[out]ptrPointer to output byte buffer.
[in]offsetOffset in the output byte buffer.
[in]value64-bit unsigned integer to write in output byte buffer as Little Endian.

Definition at line 60 of file write.c.