SDDC_Driver
Loading...
Searching...
No Matches
types.h
1/*
2 * This file is part of SDDC_Driver.
3 *
4 * =====================
5 * MIT License
6 * =====================
7 *
8 * Copyright (C) 2025 - RenardSpark
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a copy
11 * of this software and associated documentation files (the "Software"), to deal
12 * in the Software without restriction, including without limitation the rights
13 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 * copies of the Software, and to permit persons to whom the Software is
15 * furnished to do so, subject to the following conditions:
16
17 * The above copyright notice and this permission notice shall be included in all
18 * copies or substantial portions of the Software.
19
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 * SOFTWARE.
27 *
28 * SPDX-License-Identifier: MIT
29 */
30
31#ifndef _H_TYPES
32#define _H_TYPES
33
34#include <stdint.h>
35
40typedef enum sddc_err_t {
41 ERR_SUCCESS = 0x00,
42 ERR_FX3_OPEN_FAILED,
43 ERR_FX3_DEVICE_BUSY,
44 ERR_FX3_TRANSFER_FAILED,
45 ERR_NOT_COMPATIBLE = -0x10,
46 ERR_DECIMATION_OUT_OF_RANGE,
47 ERR_NOT_LED,
48 ERR_BUFFER_SIZE_INVALID,
49 ERR_OUT_OF_RANGE,
50 ERR_USB_DEVICE_NOT_FOUND,
51 ERR_USB_STUCK_IN_BOOTLOADER,
52 ERR_USB_USB3_UNAVAILABLE,
53 ERR_USB_LIST_ENDPOINTS_FAILED,
54 ERR_USB_OPEN_FAILED,
55 ERR_USB_NO_BULK_IN_ENDPOINT
56} sddc_err_t;
57
58typedef enum sddc_rf_mode_t {
59 NOMODE = 0x00,
60 HFMODE = 0x01,
61 VHFMODE = 0x02
62} sddc_rf_mode_t;
63
64typedef enum sddc_leds_t {
65 SDDC_LED_YELLOW = 0x01,
66 SDDC_LED_RED = 0x02,
67 SDDC_LED_BLUE = 0x04
68} sddc_leds_t;
69
70typedef float sddc_complex_t[2];
71
72#endif // _H_TYPES