psptypes.h File Reference

Header for the Platform Support Package - Platform dependent types. More...

#include "pspplat.h"
#include "psptypes-doxygen.h"
Include dependency graph for psptypes.h:
This graph shows which files directly or indirectly include this file:

Macros

#define RDM_UNREF(a) ((void) a)
#define RDM_UNSET(a) = a
#define MAKE_RDM_BOOL(x) ((x) ? RDM_TRUE : RDM_FALSE)
#define EXTERNAL_FCN_PTR EXTERNAL_FCN *
#define RDM_LEN(x) (sizeof (x) / sizeof (x[0]))
#define RDM_MIN(a, b) ((a) < (b) ? (a) : (b))
#define RDM_MAX(a, b) ((a) > (b) ? (a) : (b))
#define RDM_INT8_MIN ((int8_t) 0x80U)
#define RDM_INT8_MAX ((int8_t) 0x7FU)
#define RDM_UINT8_MAX ((uint8_t) 0xFFU)
#define RDM_INT16_MIN ((int16_t) 0x8000U)
#define RDM_INT16_MAX ((int16_t) 0x7FFFU)
#define RDM_UINT16_MAX ((uint16_t) 0xFFFFU)
#define RDM_INT32_MIN ((int32_t) 0x80000000U)
#define RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU)
#define RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU)
#define RDM_INT64_MIN (-9223372036854775807LL - 1)
#define RDM_INT64_MAX (9223372036854775807LL)
#define RDM_UINT64_MAX (18446744073709551615ULL)
#define RDM_INT64_FMT "%" RDM_64BIT_CODE "d"
#define RDM_UINT64_FMT "%" RDM_64BIT_CODE "u"
#define RDM_INT64_FMT_HEX "%" RDM_64BIT_CODE "X"
#define RDM_UINT64_FMT_HEX "%" RDM_64BIT_CODE "X"
#define RDM_INT64_FMT_SIZE(size) "%" #size RDM_64BIT_CODE "d"
#define RDM_UINT64_FMT_SIZE(size) "%" #size RDM_64BIT_CODE "u"
#define RDM_INT64_FMT_SIZE_HEX(size) "%" #size RDM_64BIT_CODE "X"
#define RDM_UINT64_FMT_SIZE_HEX(size) "%" #size RDM_64BIT_CODE "X"
#define RDM_STRINGIFY_(data) #data
#define RDM_STRINGIFY(data) RDM_STRINGIFY_ (data)
#define __has_feature(x) 0
#define RDM_ALIGNAS(align) alignas(align)

Enumerations

enum RDM_BOOL_T { RDM_FALSE = 0, RDM_TRUE = 1, __RDM_BOOL_MAX = 0x7fffffff }
enum RDM_COMPARE { RDM_LT = -1, RDM_EQ = 0, RDM_GT = 1 }

Detailed Description

Header for the Platform Support Package - Platform dependent types.

Macro Definition Documentation

__has_feature

#define __has_feature ( x ) 0

EXTERNAL_FCN_PTR

#define EXTERNAL_FCN_PTR EXTERNAL_FCN *

MAKE_RDM_BOOL

#define MAKE_RDM_BOOL ( x ) ((x) ? RDM_TRUE : RDM_FALSE)

RDM_ALIGNAS

#define RDM_ALIGNAS ( align ) alignas(align)

Use this macro with the size for alignment in front of a declaration

Examples
cpp50Example_main.cpp.

RDM_INT16_MAX

#define RDM_INT16_MAX ((int16_t) 0x7FFFU)

Maximum value for int64_t

RDM_INT16_MIN

#define RDM_INT16_MIN ((int16_t) 0x8000U)

Minimum value for int16_t

RDM_INT32_MAX

#define RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU)

Maximum value for int64_t

RDM_INT32_MIN

#define RDM_INT32_MIN ((int32_t) 0x80000000U)

Minimum value for int32_t

RDM_INT64_FMT

#define RDM_INT64_FMT "%" RDM_64BIT_CODE "d"

Format string for 64 bit integer

RDM_INT64_FMT_HEX

#define RDM_INT64_FMT_HEX "%" RDM_64BIT_CODE "X"

Format string for 64 bit integer in hexadecimal

RDM_INT64_FMT_SIZE

#define RDM_INT64_FMT_SIZE ( size ) "%" #size RDM_64BIT_CODE "d"

Format string for 64 bit integer where size is specified

RDM_INT64_FMT_SIZE_HEX

#define RDM_INT64_FMT_SIZE_HEX ( size ) "%" #size RDM_64BIT_CODE "X"

Format string for 64 bit integer in hexadecimal where size is specified

RDM_INT64_MAX

#define RDM_INT64_MAX (9223372036854775807LL)

Maximum value for int64_t

RDM_INT64_MIN

#define RDM_INT64_MIN (-9223372036854775807LL - 1)

Minimum value for int64_t

RDM_INT8_MAX

#define RDM_INT8_MAX ((int8_t) 0x7FU)

Maximum value for int64_t

RDM_INT8_MIN

#define RDM_INT8_MIN ((int8_t) 0x80U)

Minimum value for int_t

RDM_LEN

RDM_MAX

#define RDM_MAX ( a,
b
) ((a) > (b) ? (a) : (b))

Macro fo taking the max of two arguments of any type

Examples
core28Example_main.c, core29Example_main.c, and core30Example_main.c.

RDM_MIN

#define RDM_MIN ( a,
b
) ((a) < (b) ? (a) : (b))

Macro fo taking the min of two arguments of any type

Examples
core28Example_main.c, core29Example_main.c, and core30Example_main.c.

RDM_STRINGIFY

#define RDM_STRINGIFY ( data ) RDM_STRINGIFY_ (data)

RDM_STRINGIFY_

#define RDM_STRINGIFY_ ( data ) #data

RDM_UINT16_MAX

#define RDM_UINT16_MAX ((uint16_t) 0xFFFFU)

Maximum value for uint64_t

RDM_UINT32_MAX

#define RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU)

Maximum value for uint64_t

RDM_UINT64_FMT

#define RDM_UINT64_FMT "%" RDM_64BIT_CODE "u"

Format string for 64 bit unsigned integer

RDM_UINT64_FMT_HEX

#define RDM_UINT64_FMT_HEX "%" RDM_64BIT_CODE "X"

Format string for 64 bit unsigned integer in hexadecimal

RDM_UINT64_FMT_SIZE

#define RDM_UINT64_FMT_SIZE ( size ) "%" #size RDM_64BIT_CODE "u"

Format string for 64 bit unsigned integer where size is specified

RDM_UINT64_FMT_SIZE_HEX

#define RDM_UINT64_FMT_SIZE_HEX ( size ) "%" #size RDM_64BIT_CODE "X"

Format string for 64 bit unsigned integer in hexadecimal where size is specified

RDM_UINT64_MAX

#define RDM_UINT64_MAX (18446744073709551615ULL)

Maximum value for uint64_t

Examples
cpp55Example_main.cpp.

RDM_UINT8_MAX

#define RDM_UINT8_MAX ((uint8_t) 0xFFU)

Maximum value for uint64_t

RDM_UNREF

RDM_UNSET

#define RDM_UNSET ( a ) = a

Enumeration Type Documentation

RDM_BOOL_T

enum RDM_BOOL_T

Enumeration for RDM boolen values

This enumeration adds support for a platform/language agnostic BOOLEAN value in the RDM library

Enumerator
RDM_FALSE

enum value for FALSE

RDM_TRUE

enum value for TRUE

__RDM_BOOL_MAX
58 {
59RDM_FALSE = 0,
60RDM_TRUE = 1,
61__RDM_BOOL_MAX = 0x7fffffff
62 } RDM_BOOL_T;

RDM_COMPARE

Enumeration for RDM comparison values

Enumerator
RDM_LT

The first argument is lesser than the second argument

RDM_EQ

The arguments are equal

RDM_GT

The first argument is greater than the second argument

68 {
69RDM_LT = -1,
70RDM_EQ = 0,
71RDM_GT = 1
@ RDM_FALSE
Definition: psptypes.h:59
@ RDM_EQ
Definition: psptypes.h:70
@ RDM_TRUE
Definition: psptypes.h:60
@ __RDM_BOOL_MAX
Definition: psptypes.h:61
@ RDM_LT
Definition: psptypes.h:69
RDM_BOOL_T
Definition: psptypes.h:58
RDM_COMPARE
Definition: psptypes.h:68
@ RDM_GT
Definition: psptypes.h:71