Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Loading...
Searching...
No Matches
cascoda_types.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, Cascoda Ltd.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * 3. Neither the name of the copyright holder nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
27 */
33#ifndef CASCODA_TYPES_H
34#define CASCODA_TYPES_H
35
36#include <stdbool.h>
37#include <stddef.h>
38#include <stdint.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44#if __STDC_VERSION__ < 199901L
45
46typedef unsigned char u8_t;
47typedef signed char i8_t;
48typedef unsigned short u16_t;
49typedef signed short i16_t;
50typedef unsigned long u32_t;
51typedef signed long i32_t;
52typedef unsigned long long u64_t;
53typedef signed long long i64_t;
54
55#else
56
57typedef uint8_t u8_t;
58typedef int8_t i8_t;
59typedef uint16_t u16_t;
60typedef int16_t i16_t;
61typedef uint32_t u32_t;
62typedef int32_t i32_t;
63typedef uint64_t u64_t;
64typedef int64_t i64_t;
65
66#endif
67
68#define NULLP 0
70#ifdef __cplusplus
71}
72#endif
73
74#endif // CASCODA_TYPES_H
unsigned long long u64_t
Definition cascoda_types.h:52
signed short i16_t
Definition cascoda_types.h:49
unsigned long u32_t
Definition cascoda_types.h:50
signed char i8_t
Definition cascoda_types.h:47
unsigned char u8_t
Definition cascoda_types.h:46
signed long long i64_t
Definition cascoda_types.h:53
signed long i32_t
Definition cascoda_types.h:51
unsigned short u16_t
Definition cascoda_types.h:48