equal
deleted
inserted
replaced
80 EUartDataLength6/* =bitmask for six data bits */, |
80 EUartDataLength6/* =bitmask for six data bits */, |
81 EUartDataLength7/* =bitmask for seven data bits */, |
81 EUartDataLength7/* =bitmask for seven data bits */, |
82 EUartDataLength8/* =bitmask for eight data bits */ |
82 EUartDataLength8/* =bitmask for eight data bits */ |
83 }; |
83 }; |
84 |
84 |
|
85 //Remove the #if block if this code needs to be used or referenced. |
|
86 #if 0 //RVCT40 warning |
85 // |
87 // |
86 // TO DO: (mandatory) |
88 // TO DO: (mandatory) |
87 // |
89 // |
88 // Lookup table to convert EPOC baud rates into hardware-specific baud rate values |
90 // Lookup table to convert EPOC baud rates into hardware-specific baud rate values |
89 // Unsupported baud rates select the nearest lower rate. |
91 // Unsupported baud rates select the nearest lower rate. |
104 // TO DO: (mandatory) |
106 // TO DO: (mandatory) |
105 // |
107 // |
106 // Lookup table to convert EPOC parity settings into hardware-specific values |
108 // Lookup table to convert EPOC parity settings into hardware-specific values |
107 // |
109 // |
108 // EXAMPLE ONLY |
110 // EXAMPLE ONLY |
|
111 |
109 static const TUartParity Parity[3] = |
112 static const TUartParity Parity[3] = |
110 { |
113 { |
111 EUartParityNone,EUartParityEven,EUartParityOdd |
114 EUartParityNone,EUartParityEven,EUartParityOdd |
112 }; |
115 }; |
113 |
116 |
115 // TO DO: (mandatory) |
118 // TO DO: (mandatory) |
116 // |
119 // |
117 // Lookup table to convert EPOC stop bit values into hardware-specific values |
120 // Lookup table to convert EPOC stop bit values into hardware-specific values |
118 // |
121 // |
119 // EXAMPLE ONLY |
122 // EXAMPLE ONLY |
|
123 |
120 static const TUartStopBit StopBit[2] = |
124 static const TUartStopBit StopBit[2] = |
121 { |
125 { |
122 EUartStopBitOne,EUartStopBitTwo |
126 EUartStopBitOne,EUartStopBitTwo |
123 }; |
127 }; |
124 |
128 |
126 // TO DO: (mandatory) |
130 // TO DO: (mandatory) |
127 // |
131 // |
128 // Lookup table to convert EPOC data bit settings into hardware-specific values |
132 // Lookup table to convert EPOC data bit settings into hardware-specific values |
129 // |
133 // |
130 // EXAMPLE ONLY |
134 // EXAMPLE ONLY |
|
135 |
131 static const TUartDataLength DataLength[4] = |
136 static const TUartDataLength DataLength[4] = |
132 { |
137 { |
133 EUartDataLength5,EUartDataLength6, |
138 EUartDataLength5,EUartDataLength6, |
134 EUartDataLength7,EUartDataLength8 |
139 EUartDataLength7,EUartDataLength8 |
135 }; |
140 }; |
136 |
141 |
|
142 #endif //RVCT40 warning |
137 |
143 |
138 |
144 |
139 class DDriverComm : public DPhysicalDevice |
145 class DDriverComm : public DPhysicalDevice |
140 { |
146 { |
141 public: |
147 public: |