SDDC_Driver
Loading...
Searching...
No Matches
types.h
1/*
2 * This file is part of SDDC_Driver.
3 *
4 * Copyright (C) 2025 - RenardSpark
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef _H_TYPES
21#define _H_TYPES
22
23#include <stdint.h>
24
29typedef enum sddc_err_t {
30 ERR_SUCCESS = 0x00,
31 ERR_FX3_OPEN_FAILED,
32 ERR_FX3_DEVICE_BUSY,
33 ERR_FX3_TRANSFER_FAILED,
34 ERR_NOT_COMPATIBLE = -0x10,
35 ERR_DECIMATION_OUT_OF_RANGE,
36 ERR_NOT_LED,
37 ERR_BUFFER_SIZE_INVALID,
38 ERR_OUT_OF_RANGE
39} sddc_err_t;
40
41typedef enum sddc_rf_mode_t {
42 NOMODE = 0x00,
43 HFMODE = 0x01,
44 VHFMODE = 0x02
45} sddc_rf_mode_t;
46
47typedef enum sddc_leds_t {
48 SDDC_LED_YELLOW = 0x01,
49 SDDC_LED_RED = 0x02,
50 SDDC_LED_BLUE = 0x04
51} sddc_leds_t;
52
53typedef float sddc_complex_t[2];
54
55#endif // _H_TYPES