Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
byteorder.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/sys/byteorder.h>

Macros

#define VAL   0xf0e1
 
#define VAL   0xf0e1d2c3
 
#define VAL   0xf0e1d2c3b4a59687
 

Functions

void test_byteorder_memcpy_swap (void)
 Test swapping for memory contents.
 
void test_byteorder_mem_swap (void)
 Test sys_mem_swap() functionality.
 
void test_sys_get_be64 (void)
 Test sys_get_be64() functionality.
 
void test_sys_put_be64 (void)
 Test sys_put_be64() functionality.
 
void test_sys_get_be40 (void)
 Test sys_get_be40() functionality.
 
void test_sys_put_be40 (void)
 Test sys_put_be40() functionality.
 
void test_sys_get_be48 (void)
 Test sys_get_be48() functionality.
 
void test_sys_put_be48 (void)
 Test sys_put_be48() functionality.
 
void test_sys_get_be32 (void)
 Test sys_get_be32() functionality.
 
void test_sys_put_be32 (void)
 Test sys_put_be32() functionality.
 
void test_sys_get_be24 (void)
 Test sys_get_be24() functionality.
 
void test_sys_put_be24 (void)
 Test sys_put_be24() functionality.
 
void test_sys_get_be16 (void)
 Test sys_get_be16() functionality.
 
void test_sys_put_be16 (void)
 Test sys_put_be16() functionality.
 
void test_sys_get_le16 (void)
 Test sys_get_le16() functionality.
 
void test_sys_put_le16 (void)
 Test sys_put_le16() functionality.
 
void test_sys_get_le24 (void)
 Test sys_get_le24() functionality.
 
void test_sys_put_le24 (void)
 Test sys_put_le24() functionality.
 
void test_sys_get_le32 (void)
 Test sys_get_le32() functionality.
 
void test_sys_put_le32 (void)
 Test sys_put_le32() functionality.
 
void test_sys_get_le40 (void)
 Test sys_get_le40() functionality.
 
void test_sys_put_le40 (void)
 Test sys_put_le40() functionality.
 
void test_sys_get_le48 (void)
 Test sys_get_le48() functionality.
 
void test_sys_put_le48 (void)
 Test sys_put_le48() functionality.
 
void test_sys_get_le64 (void)
 Test sys_get_le64() functionality.
 
void test_sys_put_le64 (void)
 Test sys_put_le64() functionality.
 
void test_sys_uint16_to_array (void)
 Test sys_uint16_to_array() functionality.
 
void test_sys_uint32_to_array (void)
 Test sys_uint32_to_array() functionality.
 
void test_sys_uint64_to_array (void)
 Test sys_uint64_to_array() functionality.
 
void test_sys_le_to_cpu (void)
 
void test_sys_cpu_to_le (void)
 
void test_sys_be_to_cpu (void)
 
void test_sys_cpu_to_be (void)
 
void test_sys_put_le (void)
 
void test_sys_put_be (void)
 
void test_sys_get_le (void)
 
void test_sys_get_be (void)
 
void * common_setup (void)
 
 ZTEST_SUITE (byteorder, NULL, common_setup, NULL, NULL, NULL)
 

Macro Definition Documentation

◆ VAL [1/3]

#define VAL   0xf0e1

◆ VAL [2/3]

#define VAL   0xf0e1d2c3

◆ VAL [3/3]

#define VAL   0xf0e1d2c3b4a59687

Function Documentation

◆ common_setup()

void * common_setup ( void )
extern

◆ ZTEST_SUITE()

ZTEST_SUITE ( byteorder ,
NULL ,
common_setup ,
NULL ,
NULL ,
NULL  )