diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-12-07 12:01:57 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-12-07 12:01:57 +0000 |
commit | e06b155baa31443e76650d4c6aaca960af9f0051 (patch) | |
tree | fd9377989a30293eb1ac0ff0f34a6fcf4d64f9b0 /src/include/serial.h | |
parent | dae3de6609b9251dbaaa280c1ce886a350c3c0c5 (diff) | |
download | ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.tar.gz ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.tar.bz2 ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@537 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/serial.h')
-rw-r--r-- | src/include/serial.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/include/serial.h b/src/include/serial.h index 4b7b02b7c..25dcfa9ec 100644 --- a/src/include/serial.h +++ b/src/include/serial.h @@ -26,19 +26,19 @@ #define _SERIAL_H_
/** No pending conditions.*/
-#define SD_NO_ERROR 0
+#define SD_NO_ERROR 0
/** Connection happened.*/
-#define SD_CONNECTED 1
+#define SD_CONNECTED 1
/** Disconnection happened.*/
-#define SD_DISCONNECTED 2
+#define SD_DISCONNECTED 2
/** Parity error happened.*/
-#define SD_PARITY_ERROR 4
+#define SD_PARITY_ERROR 4
/** Framing error happened.*/
-#define SD_FRAMING_ERROR 8
+#define SD_FRAMING_ERROR 8
/** Overflow happened.*/
-#define SD_OVERRUN_ERROR 16
+#define SD_OVERRUN_ERROR 16
/** Break detected.*/
-#define SD_BREAK_DETECTED 32
+#define SD_BREAK_DETECTED 32
/** Serial Driver condition flags type.*/
typedef uint16_t dflags_t;
@@ -52,24 +52,24 @@ typedef struct { /** Input queue. Incoming data can be read from this queue by using the
* queues APIs.*/
- Queue sd_iqueue;
+ Queue sd_iqueue;
/** Data Available \p EventSource. This event is generated when some incoming
* data is inserted in the Input \p Queue.*/
- EventSource sd_ievent;
+ EventSource sd_ievent;
/** Output queue. Outgoing data can be written to this Output \p Queue by
* using the queues APIs.*/
- Queue sd_oqueue;
+ Queue sd_oqueue;
/** Data Transmitted \p EventSource. This event is generated when the
* Output \p Queue is empty.*/
- EventSource sd_oevent;
+ EventSource sd_oevent;
/** I/O driver status flags. This field should not be read directly but
* the \p chFDDGetAndClearFlags() funtion should be used instead.*/
- dflags_t sd_flags;
+ dflags_t sd_flags;
/** Status Change \p EventSource. This event is generated when a
* condition flag was changed.*/
- EventSource sd_sevent;
+ EventSource sd_sevent;
} FullDuplexDriver;
#ifdef __cplusplus
@@ -116,22 +116,21 @@ extern "C" { typedef struct {
/** Data queue. Transmit/receive \p HalfDuplexQueue.*/
- HalfDuplexQueue sd_queue;
+ HalfDuplexQueue sd_queue;
/** Data Available \p EventSource. This event is generated when some
* incoming data is inserted in the receive queue.*/
- EventSource sd_ievent;
+ EventSource sd_ievent;
/** Data Transmitted \p EventSource. This event is generated when the
* transmission queue is empty and the driver can either transmit more
* data or enter receive mode.*/
- EventSource sd_oevent;
-
+ EventSource sd_oevent;
/** I/O driver status flags. This field should not be read directly but
* the \p chHDDGetAndClearFlags() funtion should be used
* instead.*/
- dflags_t sd_flags;
+ dflags_t sd_flags;
/** Status Change Event Source. This event is generated when a condition
* flag was changed.*/
- EventSource sd_sevent;
+ EventSource sd_sevent;
} HalfDuplexDriver;
#ifdef __cplusplus
|