FreeCalypso > hg > fc-tourmaline
comparison cdg-hybrid/cdginc/p_pkt.val @ 14:35f7a1dc9f7d
cdg-hybrid: import from Magnetite
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 16 Oct 2020 07:15:38 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 13:83146a4ae927 | 14:35f7a1dc9f7d |
|---|---|
| 1 /* | |
| 2 +--------------------------------------------------------------------------+ | |
| 3 | PROJECT : PROTOCOL STACK | | |
| 4 | FILE : p_pkt.val | | |
| 5 | SOURCE : "sap\pkt.pdf" | | |
| 6 | LastModified : "2002-10-17" | | |
| 7 | IdAndVersion : "8443.105.02.106" | | |
| 8 | SrcFileTime : "Thu Nov 29 09:50:46 2007" | | |
| 9 | Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016 | | |
| 10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | | |
| 11 +--------------------------------------------------------------------------+ | |
| 12 */ | |
| 13 | |
| 14 /* PRAGMAS | |
| 15 * PREFIX : NONE | |
| 16 * COMPATIBILITY_DEFINES : NO (require PREFIX) | |
| 17 * ALWAYS_ENUM_IN_VAL_FILE: NO | |
| 18 * ENABLE_GROUP: NO | |
| 19 * CAPITALIZE_TYPENAME: NO | |
| 20 */ | |
| 21 | |
| 22 | |
| 23 #ifndef P_PKT_VAL | |
| 24 #define P_PKT_VAL | |
| 25 | |
| 26 | |
| 27 #define CDG_ENTER__P_PKT_VAL | |
| 28 | |
| 29 #define CDG_ENTER__FILENAME _P_PKT_VAL | |
| 30 #define CDG_ENTER__P_PKT_VAL__FILE_TYPE CDGINC | |
| 31 #define CDG_ENTER__P_PKT_VAL__LAST_MODIFIED _2002_10_17 | |
| 32 #define CDG_ENTER__P_PKT_VAL__ID_AND_VERSION _8443_105_02_106 | |
| 33 | |
| 34 #define CDG_ENTER__P_PKT_VAL__SRC_FILE_TIME _Thu_Nov_29_09_50_46_2007 | |
| 35 | |
| 36 #include "CDG_ENTER.h" | |
| 37 | |
| 38 #undef CDG_ENTER__P_PKT_VAL | |
| 39 | |
| 40 #undef CDG_ENTER__FILENAME | |
| 41 | |
| 42 | |
| 43 /* | |
| 44 * Value constants for VAL_sleep_mode | |
| 45 */ | |
| 46 #define DIO_SLEEP_ENABLE (0x1) /* Enter sleep mode if possible. */ | |
| 47 #define DIO_SLEEP_DISABLE (0x2) /* Do not enter sleep mode. */ | |
| 48 | |
| 49 /* | |
| 50 * Value constants for VAL_parity | |
| 51 */ | |
| 52 #define DIO_PARITY_NO (0x1) /* Don't send a parity bit. */ | |
| 53 #define DIO_PARITY_ODD (0x2) /* Send an odd parity bit. */ | |
| 54 #define DIO_PARITY_EVEN (0x4) /* Send an even parity bit. */ | |
| 55 #define DIO_PARITY_SPACE (0x8) /* Send a space for parity bit. */ | |
| 56 | |
| 57 /* | |
| 58 * Value constants for VAL_flow_control | |
| 59 */ | |
| 60 #define DIO_FLOW_NO_NO (0x1) /* No flow control for both directions. */ | |
| 61 #define DIO_FLOW_SW_NO (0x2) /* Software flow control for receive direction and no flow control for transmit direction. */ | |
| 62 #define DIO_FLOW_HW_NO (0x4) /* Hardware flow control for receive direction and no flow control for transmit direction. */ | |
| 63 #define DIO_FLOW_NO_SW (0x8) /* No flow control for receive direction and software flow control for transmit direction. */ | |
| 64 #define DIO_FLOW_SW_SW (0x10) /* Software flow control for both directions. */ | |
| 65 #define DIO_FLOW_HW_SW (0x20) /* Hardware flow control for receive direction and software flow control for transmit direction. */ | |
| 66 #define DIO_FLOW_NO_HW (0x40) /* No flow control for receive direction and hardware flow control for transmit direction. */ | |
| 67 #define DIO_FLOW_SW_HW (0x80) /* Software flow control for receive direction and hardware flow control for transmit direction. */ | |
| 68 #define DIO_FLOW_HW_HW (0x100) /* Hardware flow control for both directions. */ | |
| 69 | |
| 70 /* | |
| 71 * Value constants for VAL_data_mode | |
| 72 */ | |
| 73 #define DIO_MODE_AT (0x1) /* The TE will transmit AT commands. */ | |
| 74 #define DIO_MODE_DATA (0x2) /* The TE will transmit data. */ | |
| 75 #define DIO_MODE_TRACE (0x4) /* The TE expects trace information via this device */ | |
| 76 #define DIO_MODE_DEFAULT (0x3) /* Default value if the driver can not provide this information */ | |
| 77 | |
| 78 /* | |
| 79 * Value constants for VAL_stop_bits | |
| 80 */ | |
| 81 #define DIO_STOP_1 (0x1) /* Send 1 stop bit. */ | |
| 82 #define DIO_STOP_15 (0x2) /* Send 1.5 stop bits. */ | |
| 83 #define DIO_STOP_2 (0x4) /* Send 2 stop bits. */ | |
| 84 | |
| 85 /* | |
| 86 * Value constants for VAL_baud | |
| 87 */ | |
| 88 #define DIO_BAUD_812500 (0x80000) /* Transmission rate of 812500 bits/sec. */ | |
| 89 #define DIO_BAUD_406250 (0x40000) /* Transmission rate of 406250 bits/sec. */ | |
| 90 #define DIO_BAUD_203125 (0x20000) /* Transmission rate of 203125 bits/sec. */ | |
| 91 #define DIO_BAUD_115200 (0x10000) /* Transmission rate of 115200 bits/sec. */ | |
| 92 #define DIO_BAUD_57600 (0x8000) /* Transmission rate of 57600 bits/sec. */ | |
| 93 #define DIO_BAUD_38400 (0x4000) /* Transmission rate of 38400 bits/sec. */ | |
| 94 #define DIO_BAUD_33900 (0x2000) /* Transmission rate of 33900 bits/sec. */ | |
| 95 #define DIO_BAUD_28800 (0x1000) /* Transmission rate of 28800 bits/sec. */ | |
| 96 #define DIO_BAUD_19200 (0x800) /* Transmission rate of 19200 bits/sec. */ | |
| 97 #define DIO_BAUD_14400 (0x400) /* Transmission rate of 14400 bits/sec. */ | |
| 98 #define DIO_BAUD_9600 (0x200) /* Transmission rate of 9600 bits/sec. */ | |
| 99 #define DIO_BAUD_7200 (0x100) /* Transmission rate of 7200 bits/sec. */ | |
| 100 #define DIO_BAUD_4800 (0x80) /* Transmission rate of 4800 bits/sec. */ | |
| 101 #define DIO_BAUD_2400 (0x40) /* Transmission rate of 2400 bits/sec. */ | |
| 102 #define DIO_BAUD_1200 (0x20) /* Transmission rate of 1200 bits/sec. */ | |
| 103 #define DIO_BAUD_600 (0x10) /* Transmission rate of 600 bits/sec. */ | |
| 104 #define DIO_BAUD_300 (0x8) /* Transmission rate of 300 bits/sec. */ | |
| 105 #define DIO_BAUD_150 (0x4) /* Transmission rate of 150 bits/sec. */ | |
| 106 #define DIO_BAUD_75 (0x2) /* Transmission rate of 75 bits/sec. */ | |
| 107 #define DIO_BAUD_AUTO (0x1) /* Automatic detection. */ | |
| 108 | |
| 109 /* | |
| 110 * Value constants for VAL_mux_configuration | |
| 111 */ | |
| 112 #define DIO_MUX_MODE_BASIC (0x1) /* The multiplexer supports Basic option. */ | |
| 113 #define DIO_MUX_MODE_ADVANCED (0x2) /* The multiplexer supports Advanced option. */ | |
| 114 #define DIO_MUX_SUBSET_UIH (0x4) /* The multiplexer supports UIH frames. */ | |
| 115 #define DIO_MUX_SUBSET_UI (0x8) /* The multiplexer supports UI frames. */ | |
| 116 #define DIO_MUX_SUBSET_I (0x10) /* The multiplexer supports I frames. */ | |
| 117 | |
| 118 /* | |
| 119 * Value constants for VAL_guard_period | |
| 120 */ | |
| 121 #define DIO_ESC_OFF (0x0) /* Turn escape sequence detection off. */ | |
| 122 | |
| 123 /* | |
| 124 * Value constants for VAL_data_bits | |
| 125 */ | |
| 126 #define DIO_CHAR_5 (0x10) /* Send 5 bits per character. */ | |
| 127 #define DIO_CHAR_6 (0x20) /* Send 6 bits per character. */ | |
| 128 #define DIO_CHAR_7 (0x40) /* Send 7 bits per character. */ | |
| 129 #define DIO_CHAR_8 (0x80) /* Send 8 bits per character. */ | |
| 130 | |
| 131 /* | |
| 132 * Value constants for VAL_convergence | |
| 133 */ | |
| 134 #define DIO_CONV_SER (0x1) /* The device can contain serial data. */ | |
| 135 #define DIO_CONV_PACKET (0x2) /* The device can contain packet data. */ | |
| 136 #define DIO_CONV_MUX (0x4) /* The device can start a multiplexer. */ | |
| 137 | |
| 138 /* | |
| 139 * Value constants for VAL_state | |
| 140 */ | |
| 141 #define DIO_SA (0x80000000)/* read/write, Device ready */ | |
| 142 #define DIO_SB (0x40000000)/* read/write, Data valid */ | |
| 143 #define DIO_X (0x20000000)/* read/write, Flow control */ | |
| 144 #define DIO_RING (0x10000000)/* write, RING indicator */ | |
| 145 #define DIO_ESC (0x8000000)/* read, escape sequence detected */ | |
| 146 #define DIO_DISC (0x4000000)/* read, link disconnected */ | |
| 147 #define DIO_MUX_STOP (0x1000000)/* read/write, stop the multiplexer */ | |
| 148 #define DIO_BRK (0x2000000)/* read/write, break received / to be sent */ | |
| 149 #define DIO_BRKLEN (0xff) /* read/write, length of the break signal in characters */ | |
| 150 #define DIO_PACKET_UNKNOWN (0x0) /* Packet transfer: No packet type available. */ | |
| 151 #define DIO_PACKET_IP (0x21) /* Packet transfer: Simple IP packet */ | |
| 152 #define DIO_PACKET_CTCP (0x2d) /* Packet transfer: Van Jacobson compressed TCP/IP header */ | |
| 153 #define DIO_PACKET_UTCP (0x2f) /* Packet transfer: Van Jacobson uncompressed TCP/IP header */ | |
| 154 | |
| 155 /* | |
| 156 * Value constants for VAL_cause | |
| 157 */ | |
| 158 #define PKTCS_SUCCESS (0xd200) /* 0b11010010 00000000 No error, success */ | |
| 159 #define PKTCS_INVALID_PARAMS (0xd201) /* 0b11010010 00000001 Device number invalid */ | |
| 160 #define PKTCS_INVALID_PEER (0xd202) /* 0b11010010 00000010 Peer does not exist */ | |
| 161 #define PKTCS_DISCONNECT (0xd203) /* 0b11010010 00000011 The driver signalled a DRV_SIGTYPE_DISCONNECT */ | |
| 162 #define PKTCS_INTERNAL_DRV_ERROR (0xd204) /* 0b11010010 00000100 A driver function returned DRV_INTERNAL_ERROR */ | |
| 163 | |
| 164 /* | |
| 165 * user defined constants | |
| 166 */ | |
| 167 #define DIO_MAX_NAME_LENGTH (0x10) | |
| 168 #define DIO_MAX_DATA_LENGTH (0x64) | |
| 169 | |
| 170 #include "CDG_LEAVE.h" | |
| 171 | |
| 172 | |
| 173 #endif |
