Unify Framework Lib 1.6.0
uic_enum.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
22#ifndef UIC_ENUM_H
23#define UIC_ENUM_H
24#include <inttypes.h>
25
38#define UIC_ENUM(name, type) \
39 name_enum; \
40 typedef type name
41
54#define UIC_ENUM8(name) UIC_ENUM(name, uint8_t)
55
68#define UIC_ENUM16(name) UIC_ENUM(name, uint16_t)
69
82#define UIC_ENUM32(name) UIC_ENUM(name, uint32_t)
83
84#endif //UIC_ENUM_H