Deokgyu Yang | 2c7e86b | 2020-04-28 10:56:11 +0900 | [diff] [blame] | 1 | /* |
| 2 | * drcNetCmd.c: |
| 3 | * Copyright (c) 2012-2017 Gordon Henderson |
| 4 | *********************************************************************** |
| 5 | * This file is part of wiringPi: |
| 6 | * https://projects.drogon.net/raspberry-pi/wiringpi/ |
| 7 | * |
| 8 | * wiringPi is free software: you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU Lesser General Public License as published by |
| 10 | * the Free Software Foundation, either version 3 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * wiringPi is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Lesser General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public License |
| 19 | * along with wiringPi. If not, see <http://www.gnu.org/licenses/>. |
| 20 | *********************************************************************** |
| 21 | */ |
| 22 | |
| 23 | #define DEFAULT_SERVER_PORT 6124 |
| 24 | |
| 25 | #define DRCN_PIN_MODE 1 |
| 26 | #define DRCN_PULL_UP_DN 2 |
| 27 | |
| 28 | #define DRCN_DIGITAL_WRITE 3 |
| 29 | #define DRCN_DIGITAL_WRITE8 4 |
| 30 | #define DRCN_ANALOG_WRITE 5 |
| 31 | #define DRCN_PWM_WRITE 6 |
| 32 | |
| 33 | #define DRCN_DIGITAL_READ 7 |
| 34 | #define DRCN_DIGITAL_READ8 8 |
| 35 | #define DRCN_ANALOG_READ 9 |
| 36 | |
| 37 | |
Deokgyu Yang | 2f8842f | 2021-03-12 17:57:23 +0900 | [diff] [blame] | 38 | extern struct drcNetComStruct |
Deokgyu Yang | 2c7e86b | 2020-04-28 10:56:11 +0900 | [diff] [blame] | 39 | { |
| 40 | uint32_t pin ; |
| 41 | uint32_t cmd ; |
| 42 | uint32_t data ; |
| 43 | } comDat ; |
| 44 | |