XDK API  3.6.0
Documentation
Functions
Serval_Basics.h File Reference

This header file includes the PBasic.h file which must be provided by the PAL. More...

#include <PBasics.h>
+ Include dependency graph for Serval_Basics.h:
+ This graph shows which files directly or indirectly include this file:

Functions

uint32_t Basics_htonl (uint32_t x)
 
uint16_t Basics_htons (uint16_t x)
 
uint32_t Basics_ntohl (uint32_t x)
 
uint16_t Basics_ntohs (uint16_t x)
 

Detailed Description

PBasics.h must be provided by the PAL providing the needed platform includes, define the basic data types and to provide other platform specific basics such as assertions and compiler annotations. The expected content is the following.

The following includes should be given:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>

#define SERVAL_PREINITIALIZED_DATA
A flag which indicates whether the boot loader on the target platform initializes bss section with zero.

#define DEPRECATED
A code annotation macro to indicate deprecated variables and functions

#define assert(expr)
An assertion macro

Basic C99 data types: char, bool, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t and uint64_t

The following integer limit macros are also expected: ULLONG_MAX, LLONG_MAX, and LLONG_MIN

A data type definition FileHandle_T for file handles

A data type definition Timer_T for timers

Function Documentation

uint32_t Basics_htonl ( uint32_t  x)

Converts the unsigned 32-bit integer from host byte order to network byte order.

Parameters
[in]xThe integer in host byte order
Returns
the integer in network byte order
uint16_t Basics_htons ( uint16_t  x)

Converts the unsigned 16-bit integer from host byte order to network byte order.

Parameters
[in]xThe integer in host byte order
Returns
the integer in network byte order
uint32_t Basics_ntohl ( uint32_t  x)

Converts the unsigned 32-bit integer from network byte order to host byte order.

Parameters
[in]xThe integer in network byte order
Returns
the integer in host byte order
uint16_t Basics_ntohs ( uint16_t  x)

Converts the unsigned 16-bit integer from network byte order to host byte order.

Parameters
[in]xThe integer in network byte order
Returns
the integer in host byte order

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:46 by doxygen 1.8.8