| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs
lib_def.h File Reference
`#include <cpu.h>`

Go to the source code of this file.

## Macros
#define | LIB_VERSION 13500u /* See Note #1. */
#define | DEF_FALSE 0
#define | DEF_TRUE 1
#define | DEF_NO 0
#define | DEF_YES 1
#define | DEF_DISABLED 0
#define | DEF_ENABLED 1
#define | DEF_INACTIVE 0
#define | DEF_ACTIVE 1
#define | DEF_INVALID 0
#define | DEF_VALID 1
#define | DEF_OFF 0
#define | DEF_ON 1
#define | DEF_CLR 0
#define | DEF_SET 1
#define | DEF_FAIL 0
#define | DEF_OK 1
#define | DEF_BIT_NONE 0x00uL
#define | DEF_BIT_00 0x01uL
#define | DEF_BIT_01 0x02uL
#define | DEF_BIT_02 0x04uL
#define | DEF_BIT_03 0x08uL
#define | DEF_BIT_04 0x10uL
#define | DEF_BIT_05 0x20uL
#define | DEF_BIT_06 0x40uL
#define | DEF_BIT_07 0x80uL
#define | DEF_BIT_08 0x0100uL
#define | DEF_BIT_09 0x0200uL
#define | DEF_BIT_10 0x0400uL
#define | DEF_BIT_11 0x0800uL
#define | DEF_BIT_12 0x1000uL
#define | DEF_BIT_13 0x2000uL
#define | DEF_BIT_14 0x4000uL
#define | DEF_BIT_15 0x8000uL
#define | DEF_BIT_16 0x00010000uL
#define | DEF_BIT_17 0x00020000uL
#define | DEF_BIT_18 0x00040000uL
#define | DEF_BIT_19 0x00080000uL
#define | DEF_BIT_20 0x00100000uL
#define | DEF_BIT_21 0x00200000uL
#define | DEF_BIT_22 0x00400000uL
#define | DEF_BIT_23 0x00800000uL
#define | DEF_BIT_24 0x01000000uL
#define | DEF_BIT_25 0x02000000uL
#define | DEF_BIT_26 0x04000000uL
#define | DEF_BIT_27 0x08000000uL
#define | DEF_BIT_28 0x10000000uL
#define | DEF_BIT_29 0x20000000uL
#define | DEF_BIT_30 0x40000000uL
#define | DEF_BIT_31 0x80000000uL
#define | DEF_BIT_32 0x0000000100000000uL
#define | DEF_BIT_33 0x0000000200000000uL
#define | DEF_BIT_34 0x0000000400000000uL
#define | DEF_BIT_35 0x0000000800000000uL
#define | DEF_BIT_36 0x0000001000000000uL
#define | DEF_BIT_37 0x0000002000000000uL
#define | DEF_BIT_38 0x0000004000000000uL
#define | DEF_BIT_39 0x0000008000000000uL
#define | DEF_BIT_40 0x0000010000000000uL
#define | DEF_BIT_41 0x0000020000000000uL
#define | DEF_BIT_42 0x0000040000000000uL
#define | DEF_BIT_43 0x0000080000000000uL
#define | DEF_BIT_44 0x0000100000000000uL
#define | DEF_BIT_45 0x0000200000000000uL
#define | DEF_BIT_46 0x0000400000000000uL
#define | DEF_BIT_47 0x0000800000000000uL
#define | DEF_BIT_48 0x0001000000000000uL
#define | DEF_BIT_49 0x0002000000000000uL
#define | DEF_BIT_50 0x0004000000000000uL
#define | DEF_BIT_51 0x0008000000000000uL
#define | DEF_BIT_52 0x0010000000000000uL
#define | DEF_BIT_53 0x0020000000000000uL
#define | DEF_BIT_54 0x0040000000000000uL
#define | DEF_BIT_55 0x0080000000000000uL
#define | DEF_BIT_56 0x0100000000000000uL
#define | DEF_BIT_57 0x0200000000000000uL
#define | DEF_BIT_58 0x0400000000000000uL
#define | DEF_BIT_59 0x0800000000000000uL
#define | DEF_BIT_60 0x1000000000000000uL
#define | DEF_BIT_61 0x2000000000000000uL
#define | DEF_BIT_62 0x4000000000000000uL
#define | DEF_BIT_63 0x8000000000000000uL
#define | DEF_OCTET_NBR_BITS 8
#define | DEF_OCTET_MASK 0xFFuL
#define | DEF_NIBBLE_NBR_BITS 4
#define | DEF_NIBBLE_MASK 0x0FuL
#define | DEF_NBR_BASE_BIN 2
#define | DEF_NBR_BASE_OCT 8
#define | DEF_NBR_BASE_DEC 10
#define | DEF_NBR_BASE_HEX 16
#define | DEF_INT_08_NBR_BITS 8L
#define | DEF_INT_08_MASK 0xFFuL
#define | DEF_INT_08U_MIN_VAL 0u
#define | DEF_INT_08U_MAX_VAL 255u
#define | DEF_INT_08S_MIN_VAL_ONES_CPL (-127)
#define | DEF_INT_08S_MAX_VAL_ONES_CPL 127
#define | DEF_INT_08S_MIN_VAL (DEF_INT_08S_MIN_VAL_ONES_CPL - 1)
#define | DEF_INT_08S_MAX_VAL DEF_INT_08S_MAX_VAL_ONES_CPL
#define | DEF_INT_08U_NBR_DIG_MIN 1
#define | DEF_INT_08U_NBR_DIG_MAX 3
#define | DEF_INT_08S_NBR_DIG_MIN 3
#define | DEF_INT_08S_NBR_DIG_MAX 3
#define | DEF_INT_16_NBR_BITS 16L
#define | DEF_INT_16_MASK 0xFFFFuL
#define | DEF_INT_16U_MIN_VAL 0uL
#define | DEF_INT_16U_MAX_VAL 65535uL
#define | DEF_INT_16S_MIN_VAL_ONES_CPL (-32767L)
#define | DEF_INT_16S_MAX_VAL_ONES_CPL 32767L
#define | DEF_INT_16S_MIN_VAL (DEF_INT_16S_MIN_VAL_ONES_CPL - 1)
#define | DEF_INT_16S_MAX_VAL DEF_INT_16S_MAX_VAL_ONES_CPL
#define | DEF_INT_16U_NBR_DIG_MIN 1
#define | DEF_INT_16U_NBR_DIG_MAX 5
#define | DEF_INT_16S_NBR_DIG_MIN 5
#define | DEF_INT_16S_NBR_DIG_MAX 5
#define | DEF_INT_32_NBR_BITS 32L
#define | DEF_INT_32_MASK 0xFFFFFFFFuL
#define | DEF_INT_32U_MIN_VAL 0uL
#define | DEF_INT_32U_MAX_VAL 4294967295uL
#define | DEF_INT_32S_MIN_VAL_ONES_CPL (-2147483647L)
#define | DEF_INT_32S_MAX_VAL_ONES_CPL 2147483647L
#define | DEF_INT_32S_MIN_VAL (DEF_INT_32S_MIN_VAL_ONES_CPL - 1)
#define | DEF_INT_32S_MAX_VAL DEF_INT_32S_MAX_VAL_ONES_CPL
#define | DEF_INT_32U_NBR_DIG_MIN 1
#define | DEF_INT_32U_NBR_DIG_MAX 10
#define | DEF_INT_32S_NBR_DIG_MIN 10
#define | DEF_INT_32S_NBR_DIG_MAX 10
#define | DEF_INT_64_NBR_BITS 64L
#define | DEF_INT_64_MASK 0xFFFFFFFFFFFFFFFFuL
#define | DEF_INT_64U_MIN_VAL 0uL
#define | DEF_INT_64U_MAX_VAL 18446744073709551615uL
#define | DEF_INT_64S_MIN_VAL_ONES_CPL (-9223372036854775807L)
#define | DEF_INT_64S_MAX_VAL_ONES_CPL 9223372036854775807L
#define | DEF_INT_64S_MIN_VAL (DEF_INT_64S_MIN_VAL_ONES_CPL - 1)
#define | DEF_INT_64S_MAX_VAL DEF_INT_64S_MAX_VAL_ONES_CPL
#define | DEF_INT_64U_NBR_DIG_MIN 1
#define | DEF_INT_64U_NBR_DIG_MAX 20
#define | DEF_INT_64S_NBR_DIG_MIN 19
#define | DEF_INT_64S_NBR_DIG_MAX 19
#define | DEF_INT_CPU_NBR_BITS (CPU_CFG_DATA_SIZE * DEF_OCTET_NBR_BITS)
#define | DEF_TIME_NBR_DAY_PER_WK 7uL
#define | DEF_TIME_NBR_DAY_PER_YR 365uL
#define | DEF_TIME_NBR_DAY_PER_YR_LEAP 366uL
#define | DEF_TIME_NBR_HR_PER_DAY 24uL
#define | DEF_TIME_NBR_HR_PER_WK (DEF_TIME_NBR_HR_PER_DAY * DEF_TIME_NBR_DAY_PER_WK )
#define | DEF_TIME_NBR_HR_PER_YR (DEF_TIME_NBR_HR_PER_DAY * DEF_TIME_NBR_DAY_PER_YR )
#define | DEF_TIME_NBR_HR_PER_YR_LEAP (DEF_TIME_NBR_HR_PER_DAY * DEF_TIME_NBR_DAY_PER_YR_LEAP)
#define | DEF_TIME_NBR_MIN_PER_HR 60uL
#define | DEF_TIME_NBR_MIN_PER_DAY (DEF_TIME_NBR_MIN_PER_HR * DEF_TIME_NBR_HR_PER_DAY )
#define | DEF_TIME_NBR_MIN_PER_WK (DEF_TIME_NBR_MIN_PER_DAY * DEF_TIME_NBR_DAY_PER_WK )
#define | DEF_TIME_NBR_MIN_PER_YR (DEF_TIME_NBR_MIN_PER_DAY * DEF_TIME_NBR_DAY_PER_YR )
#define | DEF_TIME_NBR_MIN_PER_YR_LEAP (DEF_TIME_NBR_MIN_PER_DAY * DEF_TIME_NBR_DAY_PER_YR_LEAP)
#define | DEF_TIME_NBR_SEC_PER_MIN 60uL
#define | DEF_TIME_NBR_SEC_PER_HR (DEF_TIME_NBR_SEC_PER_MIN * DEF_TIME_NBR_MIN_PER_HR )
#define | DEF_TIME_NBR_SEC_PER_DAY (DEF_TIME_NBR_SEC_PER_HR * DEF_TIME_NBR_HR_PER_DAY )
#define | DEF_TIME_NBR_SEC_PER_WK (DEF_TIME_NBR_SEC_PER_DAY * DEF_TIME_NBR_DAY_PER_WK )
#define | DEF_TIME_NBR_SEC_PER_YR (DEF_TIME_NBR_SEC_PER_DAY * DEF_TIME_NBR_DAY_PER_YR )
#define | DEF_TIME_NBR_SEC_PER_YR_LEAP (DEF_TIME_NBR_SEC_PER_DAY * DEF_TIME_NBR_DAY_PER_YR_LEAP)
#define | DEF_TIME_NBR_mS_PER_SEC 1000uL
#define | DEF_TIME_NBR_uS_PER_SEC 1000000uL
#define | DEF_TIME_NBR_nS_PER_SEC 1000000000uL
#define | LIB_ERR_NONE 0u
#define | DEF_BIT(bit) (1uL << (bit))
#define | DEF_BIT_MASK(bit_mask, bit_shift) ((bit_mask) << (bit_shift))
#define | DEF_BIT_FIELD(bit_field, bit_shift)
#define | DEF_BIT_SET(val, mask) ((val) |= (mask))
#define | DEF_BIT_CLR(val, mask) ((val) &= ~(mask))
#define | DEF_BIT_IS_SET(val, mask) ((((val) & (mask)) == (mask)) ? (DEF_YES) : (DEF_NO ))
#define | DEF_BIT_IS_CLR(val, mask) (((val) & (mask)) ? (DEF_NO ) : (DEF_YES))
#define | DEF_BIT_IS_SET_ANY(val, mask) (((val) & (mask)) ? (DEF_YES) : (DEF_NO ))
#define | DEF_BIT_IS_CLR_ANY(val, mask) ((((val) & (mask)) != (mask)) ? (DEF_YES) : (DEF_NO ))
#define | DEF_CHK_VAL_MIN(val, val_min)
#define | DEF_CHK_VAL_MAX(val, val_max)
#define | DEF_CHK_VAL(val, val_min, val_max)
#define | DEF_MIN(a, b) (((a) < (b)) ? (a) : (b))
#define | DEF_MAX(a, b) (((a) > (b)) ? (a) : (b))
#define | DEF_ABS(a) (((a) < 0) ? (-(a)) : (a))

## Typedefs
typedef CPU_INT16U | LIB_ERR

## Macro Definition Documentation

#define DEF_ABS | ( |  | a | ) | (((a) < 0) ? (-(a)) : (a))

Definition at line 917 of file lib_def.h.

#define DEF_ACTIVE 1

Definition at line 141 of file lib_def.h.

#define DEF_BIT | ( |  | bit | ) | (1uL << (bit))

Definition at line 505 of file lib_def.h.

#define DEF_BIT_00 0x01uL

Definition at line 159 of file lib_def.h.

#define DEF_BIT_01 0x02uL

Definition at line 160 of file lib_def.h.

#define DEF_BIT_02 0x04uL

Definition at line 161 of file lib_def.h.

#define DEF_BIT_03 0x08uL

Definition at line 162 of file lib_def.h.

#define DEF_BIT_04 0x10uL

Definition at line 163 of file lib_def.h.

#define DEF_BIT_05 0x20uL

Definition at line 164 of file lib_def.h.

#define DEF_BIT_06 0x40uL

Definition at line 165 of file lib_def.h.

#define DEF_BIT_07 0x80uL

Definition at line 166 of file lib_def.h.

#define DEF_BIT_08 0x0100uL

Definition at line 168 of file lib_def.h.

#define DEF_BIT_09 0x0200uL

Definition at line 169 of file lib_def.h.

#define DEF_BIT_10 0x0400uL

Definition at line 170 of file lib_def.h.

#define DEF_BIT_11 0x0800uL

Definition at line 171 of file lib_def.h.

#define DEF_BIT_12 0x1000uL

Definition at line 172 of file lib_def.h.

#define DEF_BIT_13 0x2000uL

Definition at line 173 of file lib_def.h.

#define DEF_BIT_14 0x4000uL

Definition at line 174 of file lib_def.h.

#define DEF_BIT_15 0x8000uL

Definition at line 175 of file lib_def.h.

#define DEF_BIT_16 0x00010000uL

Definition at line 177 of file lib_def.h.

#define DEF_BIT_17 0x00020000uL

Definition at line 178 of file lib_def.h.

#define DEF_BIT_18 0x00040000uL

Definition at line 179 of file lib_def.h.

#define DEF_BIT_19 0x00080000uL

Definition at line 180 of file lib_def.h.

#define DEF_BIT_20 0x00100000uL

Definition at line 181 of file lib_def.h.

#define DEF_BIT_21 0x00200000uL

Definition at line 182 of file lib_def.h.

#define DEF_BIT_22 0x00400000uL

Definition at line 183 of file lib_def.h.

#define DEF_BIT_23 0x00800000uL

Definition at line 184 of file lib_def.h.

#define DEF_BIT_24 0x01000000uL

Definition at line 186 of file lib_def.h.

#define DEF_BIT_25 0x02000000uL

Definition at line 187 of file lib_def.h.

#define DEF_BIT_26 0x04000000uL

Definition at line 188 of file lib_def.h.

#define DEF_BIT_27 0x08000000uL

Definition at line 189 of file lib_def.h.

#define DEF_BIT_28 0x10000000uL

Definition at line 190 of file lib_def.h.

#define DEF_BIT_29 0x20000000uL

Definition at line 191 of file lib_def.h.

#define DEF_BIT_30 0x40000000uL

Definition at line 192 of file lib_def.h.

#define DEF_BIT_31 0x80000000uL

Definition at line 193 of file lib_def.h.

#define DEF_BIT_32 0x0000000100000000uL

Definition at line 195 of file lib_def.h.

#define DEF_BIT_33 0x0000000200000000uL

Definition at line 196 of file lib_def.h.

#define DEF_BIT_34 0x0000000400000000uL

Definition at line 197 of file lib_def.h.

#define DEF_BIT_35 0x0000000800000000uL

Definition at line 198 of file lib_def.h.

#define DEF_BIT_36 0x0000001000000000uL

Definition at line 199 of file lib_def.h.

#define DEF_BIT_37 0x0000002000000000uL

Definition at line 200 of file lib_def.h.

#define DEF_BIT_38 0x0000004000000000uL

Definition at line 201 of file lib_def.h.

#define DEF_BIT_39 0x0000008000000000uL

Definition at line 202 of file lib_def.h.

#define DEF_BIT_40 0x0000010000000000uL

Definition at line 204 of file lib_def.h.

#define DEF_BIT_41 0x0000020000000000uL

Definition at line 205 of file lib_def.h.

#define DEF_BIT_42 0x0000040000000000uL

Definition at line 206 of file lib_def.h.

#define DEF_BIT_43 0x0000080000000000uL

Definition at line 207 of file lib_def.h.

#define DEF_BIT_44 0x0000100000000000uL

Definition at line 208 of file lib_def.h.

#define DEF_BIT_45 0x0000200000000000uL

Definition at line 209 of file lib_def.h.

#define DEF_BIT_46 0x0000400000000000uL

Definition at line 210 of file lib_def.h.

#define DEF_BIT_47 0x0000800000000000uL

Definition at line 211 of file lib_def.h.

#define DEF_BIT_48 0x0001000000000000uL

Definition at line 213 of file lib_def.h.

#define DEF_BIT_49 0x0002000000000000uL

Definition at line 214 of file lib_def.h.

#define DEF_BIT_50 0x0004000000000000uL

Definition at line 215 of file lib_def.h.

#define DEF_BIT_51 0x0008000000000000uL

Definition at line 216 of file lib_def.h.

#define DEF_BIT_52 0x0010000000000000uL

Definition at line 217 of file lib_def.h.

#define DEF_BIT_53 0x0020000000000000uL

Definition at line 218 of file lib_def.h.

#define DEF_BIT_54 0x0040000000000000uL

Definition at line 219 of file lib_def.h.

#define DEF_BIT_55 0x0080000000000000uL

Definition at line 220 of file lib_def.h.

#define DEF_BIT_56 0x0100000000000000uL

Definition at line 222 of file lib_def.h.

#define DEF_BIT_57 0x0200000000000000uL

Definition at line 223 of file lib_def.h.

#define DEF_BIT_58 0x0400000000000000uL

Definition at line 224 of file lib_def.h.

#define DEF_BIT_59 0x0800000000000000uL

Definition at line 225 of file lib_def.h.

#define DEF_BIT_60 0x1000000000000000uL

Definition at line 226 of file lib_def.h.

#define DEF_BIT_61 0x2000000000000000uL

Definition at line 227 of file lib_def.h.

#define DEF_BIT_62 0x4000000000000000uL

Definition at line 228 of file lib_def.h.

#define DEF_BIT_63 0x8000000000000000uL

Definition at line 229 of file lib_def.h.

#define DEF_BIT_CLR | ( |  | val,
|  |  | mask
| ) |  | ((val) &= ~(mask))

Definition at line 605 of file lib_def.h.

#define DEF_BIT_FIELD | ( |  | bit_field,
|  |  | bit_shift
| ) |  |

Value:
((((bit_field) >= DEF_INT_CPU_NBR_BITS) ? (DEF_INT_CPU_U_MAX_VAL) \
: (DEF_BIT(bit_field) - 1uL)) \
<< (bit_shift))

Definition at line 560 of file lib_def.h.

#define DEF_BIT_IS_CLR | ( |  | val,
|  |  | mask
| ) |  | (((val) & (mask)) ? (DEF_NO ) : (DEF_YES))

Definition at line 652 of file lib_def.h.

#define DEF_BIT_IS_CLR_ANY | ( |  | val,
|  |  | mask
| ) |  | ((((val) & (mask)) != (mask)) ? (DEF_YES) : (DEF_NO ))

Definition at line 697 of file lib_def.h.

#define DEF_BIT_IS_SET | ( |  | val,
|  |  | mask
| ) |  | ((((val) & (mask)) == (mask)) ? (DEF_YES) : (DEF_NO ))

Definition at line 629 of file lib_def.h.

#define DEF_BIT_IS_SET_ANY | ( |  | val,
|  |  | mask
| ) |  | (((val) & (mask)) ? (DEF_YES) : (DEF_NO ))

Definition at line 676 of file lib_def.h.

#define DEF_BIT_MASK | ( |  | bit_mask,
|  |  | bit_shift
| ) |  | ((bit_mask) << (bit_shift))

Definition at line 528 of file lib_def.h.

#define DEF_BIT_NONE 0x00uL

Definition at line 157 of file lib_def.h.

#define DEF_BIT_SET | ( |  | val,
|  |  | mask
| ) |  | ((val) |= (mask))

Definition at line 584 of file lib_def.h.

#define DEF_CHK_VAL | ( |  | val,
|  |  | val_min,
|  |  | val_max
| ) |  |

Value:
(((DEF_CHK_VAL_MIN(val, val_min) == DEF_FAIL) || \
(DEF_CHK_VAL_MAX(val, val_max) == DEF_FAIL)) ? DEF_FAIL : DEF_OK)

Definition at line 843 of file lib_def.h.

#define DEF_CHK_VAL_MAX | ( |  | val,
|  |  | val_max
| ) |  |

Value:
(((!(((val_max) >= 0) && ((val) < 0))) && \
((((val) >= 0) && ((val_max) < 0)) || \
((val) > (val_max)))) ? DEF_FAIL : DEF_OK)

Definition at line 789 of file lib_def.h.

#define DEF_CHK_VAL_MIN | ( |  | val,
|  |  | val_min
| ) |  |

Value:
(((!(((val) >= 0) && ((val_min) < 0))) && \
((((val_min) >= 0) && ((val) < 0)) || \
((val) < (val_min)))) ? DEF_FAIL : DEF_OK)

Definition at line 742 of file lib_def.h.

#define DEF_CLR 0

Definition at line 149 of file lib_def.h.

#define DEF_DISABLED 0

Definition at line 137 of file lib_def.h.

#define DEF_ENABLED 1

Definition at line 138 of file lib_def.h.

#define DEF_FAIL 0

Definition at line 152 of file lib_def.h.

#define DEF_FALSE 0

Definition at line 131 of file lib_def.h.

#define DEF_INACTIVE 0

Definition at line 140 of file lib_def.h.

#define DEF_INT_08_MASK 0xFFuL

Definition at line 250 of file lib_def.h.

#define DEF_INT_08_NBR_BITS 8L

Definition at line 249 of file lib_def.h.

#define DEF_INT_08S_MAX_VAL DEF_INT_08S_MAX_VAL_ONES_CPL

Definition at line 259 of file lib_def.h.

#define DEF_INT_08S_MAX_VAL_ONES_CPL 127

Definition at line 256 of file lib_def.h.

#define DEF_INT_08S_MIN_VAL (DEF_INT_08S_MIN_VAL_ONES_CPL - 1)

Definition at line 258 of file lib_def.h.

#define DEF_INT_08S_MIN_VAL_ONES_CPL (-127)

Definition at line 255 of file lib_def.h.

#define DEF_INT_08S_NBR_DIG_MAX 3

Definition at line 265 of file lib_def.h.

#define DEF_INT_08S_NBR_DIG_MIN 3

Definition at line 264 of file lib_def.h.

#define DEF_INT_08U_MAX_VAL 255u

Definition at line 253 of file lib_def.h.

#define DEF_INT_08U_MIN_VAL 0u

Definition at line 252 of file lib_def.h.

#define DEF_INT_08U_NBR_DIG_MAX 3

Definition at line 262 of file lib_def.h.

#define DEF_INT_08U_NBR_DIG_MIN 1

Definition at line 261 of file lib_def.h.

#define DEF_INT_16_MASK 0xFFFFuL

Definition at line 270 of file lib_def.h.

#define DEF_INT_16_NBR_BITS 16L

Definition at line 269 of file lib_def.h.

#define DEF_INT_16S_MAX_VAL DEF_INT_16S_MAX_VAL_ONES_CPL

Definition at line 279 of file lib_def.h.

#define DEF_INT_16S_MAX_VAL_ONES_CPL 32767L

Definition at line 276 of file lib_def.h.

#define DEF_INT_16S_MIN_VAL (DEF_INT_16S_MIN_VAL_ONES_CPL - 1)

Definition at line 278 of file lib_def.h.

#define DEF_INT_16S_MIN_VAL_ONES_CPL (-32767L)

Definition at line 275 of file lib_def.h.

#define DEF_INT_16S_NBR_DIG_MAX 5

Definition at line 285 of file lib_def.h.

#define DEF_INT_16S_NBR_DIG_MIN 5

Definition at line 284 of file lib_def.h.

#define DEF_INT_16U_MAX_VAL 65535uL

Definition at line 273 of file lib_def.h.

#define DEF_INT_16U_MIN_VAL 0uL

Definition at line 272 of file lib_def.h.

#define DEF_INT_16U_NBR_DIG_MAX 5

Definition at line 282 of file lib_def.h.

#define DEF_INT_16U_NBR_DIG_MIN 1

Definition at line 281 of file lib_def.h.

#define DEF_INT_32_MASK 0xFFFFFFFFuL

Definition at line 290 of file lib_def.h.

#define DEF_INT_32_NBR_BITS 32L

Definition at line 289 of file lib_def.h.

#define DEF_INT_32S_MAX_VAL DEF_INT_32S_MAX_VAL_ONES_CPL

Definition at line 299 of file lib_def.h.

#define DEF_INT_32S_MAX_VAL_ONES_CPL 2147483647L

Definition at line 296 of file lib_def.h.

#define DEF_INT_32S_MIN_VAL (DEF_INT_32S_MIN_VAL_ONES_CPL - 1)

Definition at line 298 of file lib_def.h.

#define DEF_INT_32S_MIN_VAL_ONES_CPL (-2147483647L)

Definition at line 295 of file lib_def.h.

#define DEF_INT_32S_NBR_DIG_MAX 10

Definition at line 305 of file lib_def.h.

#define DEF_INT_32S_NBR_DIG_MIN 10

Definition at line 304 of file lib_def.h.

#define DEF_INT_32U_MAX_VAL 4294967295uL

Definition at line 293 of file lib_def.h.

#define DEF_INT_32U_MIN_VAL 0uL

Definition at line 292 of file lib_def.h.

#define DEF_INT_32U_NBR_DIG_MAX 10

Definition at line 302 of file lib_def.h.

#define DEF_INT_32U_NBR_DIG_MIN 1

Definition at line 301 of file lib_def.h.

#define DEF_INT_64_MASK 0xFFFFFFFFFFFFFFFFuL

Definition at line 310 of file lib_def.h.

#define DEF_INT_64_NBR_BITS 64L

Definition at line 309 of file lib_def.h.

#define DEF_INT_64S_MAX_VAL DEF_INT_64S_MAX_VAL_ONES_CPL

Definition at line 319 of file lib_def.h.

#define DEF_INT_64S_MAX_VAL_ONES_CPL 9223372036854775807L

Definition at line 316 of file lib_def.h.

#define DEF_INT_64S_MIN_VAL (DEF_INT_64S_MIN_VAL_ONES_CPL - 1)

Definition at line 318 of file lib_def.h.

#define DEF_INT_64S_MIN_VAL_ONES_CPL (-9223372036854775807L)

Definition at line 315 of file lib_def.h.

#define DEF_INT_64S_NBR_DIG_MAX 19

Definition at line 325 of file lib_def.h.

#define DEF_INT_64S_NBR_DIG_MIN 19

Definition at line 324 of file lib_def.h.

#define DEF_INT_64U_MAX_VAL 18446744073709551615uL

Definition at line 313 of file lib_def.h.

#define DEF_INT_64U_MIN_VAL 0uL

Definition at line 312 of file lib_def.h.

#define DEF_INT_64U_NBR_DIG_MAX 20

Definition at line 322 of file lib_def.h.

#define DEF_INT_64U_NBR_DIG_MIN 1

Definition at line 321 of file lib_def.h.

#define DEF_INT_CPU_NBR_BITS (CPU_CFG_DATA_SIZE * DEF_OCTET_NBR_BITS)

Definition at line 331 of file lib_def.h.

#define DEF_INVALID 0

Definition at line 143 of file lib_def.h.

#define DEF_MAX | ( |  | a,
|  |  | b
| ) |  | (((a) > (b)) ? (a) : (b))

Definition at line 897 of file lib_def.h.

#define DEF_MIN | ( |  | a,
|  |  | b
| ) |  | (((a) < (b)) ? (a) : (b))

Definition at line 878 of file lib_def.h.

#define DEF_NBR_BASE_BIN 2

Definition at line 241 of file lib_def.h.

#define DEF_NBR_BASE_DEC 10

Definition at line 243 of file lib_def.h.

#define DEF_NBR_BASE_HEX 16

Definition at line 244 of file lib_def.h.

#define DEF_NBR_BASE_OCT 8

Definition at line 242 of file lib_def.h.

#define DEF_NIBBLE_MASK 0x0FuL

Definition at line 237 of file lib_def.h.

#define DEF_NIBBLE_NBR_BITS 4

Definition at line 236 of file lib_def.h.

#define DEF_NO 0

Definition at line 134 of file lib_def.h.

#define DEF_OCTET_MASK 0xFFuL

Definition at line 234 of file lib_def.h.

#define DEF_OCTET_NBR_BITS 8

Definition at line 233 of file lib_def.h.

#define DEF_OFF 0

Definition at line 146 of file lib_def.h.

#define DEF_OK 1

Definition at line 153 of file lib_def.h.

#define DEF_ON 1

Definition at line 147 of file lib_def.h.

#define DEF_SET 1

Definition at line 150 of file lib_def.h.

#define DEF_TIME_NBR_DAY_PER_WK 7uL

Definition at line 409 of file lib_def.h.

#define DEF_TIME_NBR_DAY_PER_YR 365uL

Definition at line 410 of file lib_def.h.

#define DEF_TIME_NBR_DAY_PER_YR_LEAP 366uL

Definition at line 411 of file lib_def.h.

#define DEF_TIME_NBR_HR_PER_DAY 24uL

Definition at line 413 of file lib_def.h.

#define DEF_TIME_NBR_HR_PER_WK (DEF_TIME_NBR_HR_PER_DAY * DEF_TIME_NBR_DAY_PER_WK )

Definition at line 414 of file lib_def.h.

#define DEF_TIME_NBR_HR_PER_YR (DEF_TIME_NBR_HR_PER_DAY * DEF_TIME_NBR_DAY_PER_YR )

Definition at line 415 of file lib_def.h.

#define DEF_TIME_NBR_HR_PER_YR_LEAP (DEF_TIME_NBR_HR_PER_DAY * DEF_TIME_NBR_DAY_PER_YR_LEAP)

Definition at line 416 of file lib_def.h.

#define DEF_TIME_NBR_MIN_PER_DAY (DEF_TIME_NBR_MIN_PER_HR * DEF_TIME_NBR_HR_PER_DAY )

Definition at line 419 of file lib_def.h.

#define DEF_TIME_NBR_MIN_PER_HR 60uL

Definition at line 418 of file lib_def.h.

#define DEF_TIME_NBR_MIN_PER_WK (DEF_TIME_NBR_MIN_PER_DAY * DEF_TIME_NBR_DAY_PER_WK )

Definition at line 420 of file lib_def.h.

#define DEF_TIME_NBR_MIN_PER_YR (DEF_TIME_NBR_MIN_PER_DAY * DEF_TIME_NBR_DAY_PER_YR )

Definition at line 421 of file lib_def.h.

#define DEF_TIME_NBR_MIN_PER_YR_LEAP (DEF_TIME_NBR_MIN_PER_DAY * DEF_TIME_NBR_DAY_PER_YR_LEAP)

Definition at line 422 of file lib_def.h.

#define DEF_TIME_NBR_mS_PER_SEC 1000uL

Definition at line 431 of file lib_def.h.

#define DEF_TIME_NBR_nS_PER_SEC 1000000000uL

Definition at line 433 of file lib_def.h.

#define DEF_TIME_NBR_SEC_PER_DAY (DEF_TIME_NBR_SEC_PER_HR * DEF_TIME_NBR_HR_PER_DAY )

Definition at line 426 of file lib_def.h.

#define DEF_TIME_NBR_SEC_PER_HR (DEF_TIME_NBR_SEC_PER_MIN * DEF_TIME_NBR_MIN_PER_HR )

Definition at line 425 of file lib_def.h.

#define DEF_TIME_NBR_SEC_PER_MIN 60uL

Definition at line 424 of file lib_def.h.

#define DEF_TIME_NBR_SEC_PER_WK (DEF_TIME_NBR_SEC_PER_DAY * DEF_TIME_NBR_DAY_PER_WK )

Definition at line 427 of file lib_def.h.

#define DEF_TIME_NBR_SEC_PER_YR (DEF_TIME_NBR_SEC_PER_DAY * DEF_TIME_NBR_DAY_PER_YR )

Definition at line 428 of file lib_def.h.

#define DEF_TIME_NBR_SEC_PER_YR_LEAP (DEF_TIME_NBR_SEC_PER_DAY * DEF_TIME_NBR_DAY_PER_YR_LEAP)

Definition at line 429 of file lib_def.h.

#define DEF_TIME_NBR_uS_PER_SEC 1000000uL

Definition at line 432 of file lib_def.h.

#define DEF_TRUE 1

Definition at line 132 of file lib_def.h.

#define DEF_VALID 1

Definition at line 144 of file lib_def.h.

#define DEF_YES 1

Definition at line 135 of file lib_def.h.

#define LIB_ERR_NONE 0u

Definition at line 446 of file lib_def.h.

#define LIB_VERSION 13500u /* See Note #1. */

Definition at line 87 of file lib_def.h.

## Typedef Documentation

typedef CPU_INT16U LIB_ERR

Definition at line 462 of file lib_def.h.