MSP430 DriverLib for MSP430F5xx_6xx Devices  2.91.13.01
usci_a_uart.h
1 //*****************************************************************************
2 //
3 // usci_a_uart.h - Driver for the USCI_A_UART Module.
4 //
5 //*****************************************************************************
6 
7 #ifndef __MSP430WARE_USCI_A_UART_H__
8 #define __MSP430WARE_USCI_A_UART_H__
9 
10 #include "inc/hw_memmap.h"
11 
12 #ifdef __MSP430_HAS_USCI_Ax__
13 
14 //*****************************************************************************
15 //
16 // If building with a C++ compiler, make all of the definitions in this header
17 // have a C binding.
18 //
19 //*****************************************************************************
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 #include "inc/hw_memmap.h"
26 //*****************************************************************************
27 //
28 // The following values are the sync characters possible
29 //
30 //*****************************************************************************
31 #define DEFAULT_SYNC 0x00
32 #define USCI_A_UART_AUTOMATICBAUDRATE_SYNC 0x55
33 
34 //*****************************************************************************
35 //
36 //! \brief Used in the USCI_A_UART_init() function as the param parameter.
37 //
38 //*****************************************************************************
39 typedef struct USCI_A_UART_initParam {
40  //! Selects Clock source.
41  //! \n Valid values are:
42  //! - \b USCI_A_UART_CLOCKSOURCE_SMCLK
43  //! - \b USCI_A_UART_CLOCKSOURCE_ACLK
45  //! Is the value to be written into UCBRx bits
46  uint16_t clockPrescalar;
47  //! Is First modulation stage register setting. This value is a pre-
48  //! calculated value which can be obtained from the Device Users Guide.
49  //! This value is written into UCBRFx bits of UCAxMCTLW.
50  uint8_t firstModReg;
51  //! Is Second modulation stage register setting. This value is a pre-
52  //! calculated value which can be obtained from the Device Users Guide.
53  //! This value is written into UCBRSx bits of UCAxMCTLW.
54  uint8_t secondModReg;
55  //! Is the desired parity.
56  //! \n Valid values are:
57  //! - \b USCI_A_UART_NO_PARITY [Default]
58  //! - \b USCI_A_UART_ODD_PARITY
59  //! - \b USCI_A_UART_EVEN_PARITY
60  uint8_t parity;
61  //! Controls direction of receive and transmit shift register.
62  //! \n Valid values are:
63  //! - \b USCI_A_UART_MSB_FIRST
64  //! - \b USCI_A_UART_LSB_FIRST [Default]
65  uint8_t msborLsbFirst;
66  //! Indicates one/two STOP bits
67  //! \n Valid values are:
68  //! - \b USCI_A_UART_ONE_STOP_BIT [Default]
69  //! - \b USCI_A_UART_TWO_STOP_BITS
71  //! Selects the mode of operation
72  //! \n Valid values are:
73  //! - \b USCI_A_UART_MODE [Default]
74  //! - \b USCI_A_UART_IDLE_LINE_MULTI_PROCESSOR_MODE
75  //! - \b USCI_A_UART_ADDRESS_BIT_MULTI_PROCESSOR_MODE
76  //! - \b USCI_A_UART_AUTOMATIC_BAUDRATE_DETECTION_MODE
77  uint8_t uartMode;
78  //! Indicates low frequency or oversampling baud generation
79  //! \n Valid values are:
80  //! - \b USCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION
81  //! - \b USCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION
82  uint8_t overSampling;
84 
85 
86 //*****************************************************************************
87 //
88 // The following are values that can be passed to the param parameter for
89 // functions: USCI_A_UART_init().
90 //
91 //*****************************************************************************
92 #define USCI_A_UART_NO_PARITY 0x00
93 #define USCI_A_UART_ODD_PARITY 0x01
94 #define USCI_A_UART_EVEN_PARITY 0x02
95 
96 //*****************************************************************************
97 //
98 // The following are values that can be passed to the param parameter for
99 // functions: USCI_A_UART_init().
100 //
101 //*****************************************************************************
102 #define USCI_A_UART_MSB_FIRST UCMSB
103 #define USCI_A_UART_LSB_FIRST 0x00
104 
105 //*****************************************************************************
106 //
107 // The following are values that can be passed to the param parameter for
108 // functions: USCI_A_UART_init().
109 //
110 //*****************************************************************************
111 #define USCI_A_UART_MODE UCMODE_0
112 #define USCI_A_UART_IDLE_LINE_MULTI_PROCESSOR_MODE UCMODE_1
113 #define USCI_A_UART_ADDRESS_BIT_MULTI_PROCESSOR_MODE UCMODE_2
114 #define USCI_A_UART_AUTOMATIC_BAUDRATE_DETECTION_MODE UCMODE_3
115 
116 //*****************************************************************************
117 //
118 // The following are values that can be passed to the param parameter for
119 // functions: USCI_A_UART_init().
120 //
121 //*****************************************************************************
122 #define USCI_A_UART_CLOCKSOURCE_SMCLK UCSSEL__SMCLK
123 #define USCI_A_UART_CLOCKSOURCE_ACLK UCSSEL__ACLK
124 
125 //*****************************************************************************
126 //
127 // The following are values that can be passed to the param parameter for
128 // functions: USCI_A_UART_init().
129 //
130 //*****************************************************************************
131 #define USCI_A_UART_ONE_STOP_BIT 0x00
132 #define USCI_A_UART_TWO_STOP_BITS UCSPB
133 
134 //*****************************************************************************
135 //
136 // The following are values that can be passed to the param parameter for
137 // functions: USCI_A_UART_init().
138 //
139 //*****************************************************************************
140 #define USCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION 0x01
141 #define USCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION 0x00
142 
143 //*****************************************************************************
144 //
145 // The following are values that can be passed to the mask parameter for
146 // functions: USCI_A_UART_enableInterrupt(), and
147 // USCI_A_UART_disableInterrupt().
148 //
149 //*****************************************************************************
150 #define USCI_A_UART_RECEIVE_INTERRUPT UCRXIE
151 #define USCI_A_UART_TRANSMIT_INTERRUPT UCTXIE
152 #define USCI_A_UART_RECEIVE_ERRONEOUSCHAR_INTERRUPT UCRXEIE
153 #define USCI_A_UART_BREAKCHAR_INTERRUPT UCBRKIE
154 
155 //*****************************************************************************
156 //
157 // The following are values that can be passed to the mask parameter for
158 // functions: USCI_A_UART_getInterruptStatus(), and
159 // USCI_A_UART_clearInterrupt() as well as returned by the
160 // USCI_A_UART_getInterruptStatus() function.
161 //
162 //*****************************************************************************
163 #define USCI_A_UART_RECEIVE_INTERRUPT_FLAG UCRXIFG
164 #define USCI_A_UART_TRANSMIT_INTERRUPT_FLAG UCTXIFG
165 
166 //*****************************************************************************
167 //
168 // The following are values that can be passed to the mask parameter for
169 // functions: USCI_A_UART_queryStatusFlags() as well as returned by the
170 // USCI_A_UART_queryStatusFlags() function.
171 //
172 //*****************************************************************************
173 #define USCI_A_UART_LISTEN_ENABLE UCLISTEN
174 #define USCI_A_UART_FRAMING_ERROR UCFE
175 #define USCI_A_UART_OVERRUN_ERROR UCOE
176 #define USCI_A_UART_PARITY_ERROR UCPE
177 #define USCI_A_UART_BREAK_DETECT UCBRK
178 #define USCI_A_UART_RECEIVE_ERROR UCRXERR
179 #define USCI_A_UART_ADDRESS_RECEIVED UCADDR
180 #define USCI_A_UART_IDLELINE UCIDLE
181 #define USCI_A_UART_BUSY UCBUSY
182 
183 //*****************************************************************************
184 //
185 // Prototypes for the APIs.
186 //
187 //*****************************************************************************
188 
189 //*****************************************************************************
190 //
191 //! \brief Advanced initialization routine for the UART block. The values to be
192 //! written into the clockPrescalar, firstModReg, secondModReg and overSampling
193 //! parameters should be pre-computed and passed into the initialization
194 //! function.
195 //!
196 //! Upon successful initialization of the UART block, this function will have
197 //! initialized the module, but the UART block still remains disabled and must
198 //! be enabled with USCI_A_UART_enable(). To calculate values for
199 //! clockPrescalar, firstModReg, secondModReg and overSampling please use the
200 //! link below.
201 //!
202 //! http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430BaudRateConverter/index.html
203 //!
204 //! \param baseAddress is the base address of the USCI_A_UART module.
205 //! \param param is the pointer to struct for initialization.
206 //!
207 //! Modified bits are \b UCPEN, \b UCPAR, \b UCMSB, \b UC7BIT, \b UCSPB, \b
208 //! UCMODEx and \b UCSYNC of \b UCAxCTL0 register; bits \b UCSSELx and \b
209 //! UCSWRST of \b UCAxCTL1 register.
210 //!
211 //! \return STATUS_SUCCESS or STATUS_FAIL of the initialization process
212 //
213 //*****************************************************************************
214 extern bool USCI_A_UART_init(uint16_t baseAddress,
215  USCI_A_UART_initParam *param);
216 
217 //*****************************************************************************
218 //
219 //! \brief Transmits a byte from the UART Module.
220 //!
221 //! This function will place the supplied data into UART transmit data register
222 //! to start transmission
223 //!
224 //! \param baseAddress is the base address of the USCI_A_UART module.
225 //! \param transmitData data to be transmitted from the UART module
226 //!
227 //! Modified bits of \b UCAxTXBUF register.
228 //!
229 //! \return None
230 //
231 //*****************************************************************************
232 extern void USCI_A_UART_transmitData(uint16_t baseAddress,
233  uint8_t transmitData);
234 
235 //*****************************************************************************
236 //
237 //! \brief Receives a byte that has been sent to the UART Module.
238 //!
239 //! This function reads a byte of data from the UART receive data Register.
240 //!
241 //! \param baseAddress is the base address of the USCI_A_UART module.
242 //!
243 //! Modified bits of \b UCAxRXBUF register.
244 //!
245 //! \return Returns the byte received from by the UART module, cast as an
246 //! uint8_t.
247 //
248 //*****************************************************************************
249 extern uint8_t USCI_A_UART_receiveData(uint16_t baseAddress);
250 
251 //*****************************************************************************
252 //
253 //! \brief Enables individual UART interrupt sources.
254 //!
255 //! Enables the indicated UART interrupt sources. The interrupt flag is first
256 //! and then the corresponding interrupt is enabled. Only the sources that are
257 //! enabled can be reflected to the processor interrupt; disabled sources have
258 //! no effect on the processor. Does not clear interrupt flags.
259 //!
260 //! \param baseAddress is the base address of the USCI_A_UART module.
261 //! \param mask is the bit mask of the interrupt sources to be enabled.
262 //! Mask value is the logical OR of any of the following:
263 //! - \b USCI_A_UART_RECEIVE_INTERRUPT - Receive interrupt
264 //! - \b USCI_A_UART_TRANSMIT_INTERRUPT - Transmit interrupt
265 //! - \b USCI_A_UART_RECEIVE_ERRONEOUSCHAR_INTERRUPT - Receive
266 //! erroneous-character interrupt enable
267 //! - \b USCI_A_UART_BREAKCHAR_INTERRUPT - Receive break character
268 //! interrupt enable
269 //!
270 //! Modified bits of \b UCAxCTL1 register and bits of \b UCAxIE register.
271 //!
272 //! \return None
273 //
274 //*****************************************************************************
275 extern void USCI_A_UART_enableInterrupt(uint16_t baseAddress,
276  uint8_t mask);
277 
278 //*****************************************************************************
279 //
280 //! \brief Disables individual UART interrupt sources.
281 //!
282 //! Disables the indicated UART interrupt sources. Only the sources that are
283 //! enabled can be reflected to the processor interrupt; disabled sources have
284 //! no effect on the processor.
285 //!
286 //! \param baseAddress is the base address of the USCI_A_UART module.
287 //! \param mask is the bit mask of the interrupt sources to be disabled.
288 //! Mask value is the logical OR of any of the following:
289 //! - \b USCI_A_UART_RECEIVE_INTERRUPT - Receive interrupt
290 //! - \b USCI_A_UART_TRANSMIT_INTERRUPT - Transmit interrupt
291 //! - \b USCI_A_UART_RECEIVE_ERRONEOUSCHAR_INTERRUPT - Receive
292 //! erroneous-character interrupt enable
293 //! - \b USCI_A_UART_BREAKCHAR_INTERRUPT - Receive break character
294 //! interrupt enable
295 //!
296 //! Modified bits of \b UCAxCTL1 register and bits of \b UCAxIE register.
297 //!
298 //! \return None
299 //
300 //*****************************************************************************
301 extern void USCI_A_UART_disableInterrupt(uint16_t baseAddress,
302  uint8_t mask);
303 
304 //*****************************************************************************
305 //
306 //! \brief Gets the current UART interrupt status.
307 //!
308 //! This returns the interrupt status for the UART module based on which flag
309 //! is passed.
310 //!
311 //! \param baseAddress is the base address of the USCI_A_UART module.
312 //! \param mask is the masked interrupt flag status to be returned.
313 //! Mask value is the logical OR of any of the following:
314 //! - \b USCI_A_UART_RECEIVE_INTERRUPT_FLAG - Receive interrupt flag
315 //! - \b USCI_A_UART_TRANSMIT_INTERRUPT_FLAG - Transmit interrupt flag
316 //!
317 //! Modified bits of \b UCAxIFG register.
318 //!
319 //! \return Logical OR of any of the following:
320 //! - \b USCI_A_UART_RECEIVE_INTERRUPT_FLAG Receive interrupt flag
321 //! - \b USCI_A_UART_TRANSMIT_INTERRUPT_FLAG Transmit interrupt flag
322 //! \n indicating the status of the masked flags
323 //
324 //*****************************************************************************
325 extern uint8_t USCI_A_UART_getInterruptStatus(uint16_t baseAddress,
326  uint8_t mask);
327 
328 //*****************************************************************************
329 //
330 //! \brief Clears UART interrupt sources.
331 //!
332 //! The UART interrupt source is cleared, so that it no longer asserts. The
333 //! highest interrupt flag is automatically cleared when an interrupt vector
334 //! generator is used.
335 //!
336 //! \param baseAddress is the base address of the USCI_A_UART module.
337 //! \param mask is a bit mask of the interrupt sources to be cleared.
338 //! Mask value is the logical OR of any of the following:
339 //! - \b USCI_A_UART_RECEIVE_INTERRUPT_FLAG - Receive interrupt flag
340 //! - \b USCI_A_UART_TRANSMIT_INTERRUPT_FLAG - Transmit interrupt flag
341 //!
342 //! Modified bits of \b UCAxIFG register.
343 //!
344 //! \return None
345 //
346 //*****************************************************************************
347 extern void USCI_A_UART_clearInterrupt(uint16_t baseAddress,
348  uint8_t mask);
349 
350 //*****************************************************************************
351 //
352 //! \brief Enables the UART block.
353 //!
354 //! This will enable operation of the UART block.
355 //!
356 //! \param baseAddress is the base address of the USCI_A_UART module.
357 //!
358 //! Modified bits are \b UCSWRST of \b UCAxCTL1 register.
359 //!
360 //! \return None
361 //
362 //*****************************************************************************
363 extern void USCI_A_UART_enable(uint16_t baseAddress);
364 
365 //*****************************************************************************
366 //
367 //! \brief Disables the UART block.
368 //!
369 //! This will disable operation of the UART block.
370 //!
371 //! \param baseAddress is the base address of the USCI_A_UART module.
372 //!
373 //! Modified bits are \b UCSWRST of \b UCAxCTL1 register.
374 //!
375 //! \return None
376 //
377 //*****************************************************************************
378 extern void USCI_A_UART_disable(uint16_t baseAddress);
379 
380 //*****************************************************************************
381 //
382 //! \brief Gets the current UART status flags.
383 //!
384 //! This returns the status for the UART module based on which flag is passed.
385 //!
386 //! \param baseAddress is the base address of the USCI_A_UART module.
387 //! \param mask is the masked interrupt flag status to be returned.
388 //! Mask value is the logical OR of any of the following:
389 //! - \b USCI_A_UART_LISTEN_ENABLE
390 //! - \b USCI_A_UART_FRAMING_ERROR
391 //! - \b USCI_A_UART_OVERRUN_ERROR
392 //! - \b USCI_A_UART_PARITY_ERROR
393 //! - \b USCI_A_UART_BREAK_DETECT
394 //! - \b USCI_A_UART_RECEIVE_ERROR
395 //! - \b USCI_A_UART_ADDRESS_RECEIVED
396 //! - \b USCI_A_UART_IDLELINE
397 //! - \b USCI_A_UART_BUSY
398 //!
399 //! Modified bits of \b UCAxSTAT register.
400 //!
401 //! \return Logical OR of any of the following:
402 //! - \b USCI_A_UART_LISTEN_ENABLE
403 //! - \b USCI_A_UART_FRAMING_ERROR
404 //! - \b USCI_A_UART_OVERRUN_ERROR
405 //! - \b USCI_A_UART_PARITY_ERROR
406 //! - \b USCI_A_UART_BREAK_DETECT
407 //! - \b USCI_A_UART_RECEIVE_ERROR
408 //! - \b USCI_A_UART_ADDRESS_RECEIVED
409 //! - \b USCI_A_UART_IDLELINE
410 //! - \b USCI_A_UART_BUSY
411 //! \n indicating the status of the masked interrupt flags
412 //
413 //*****************************************************************************
414 extern uint8_t USCI_A_UART_queryStatusFlags(uint16_t baseAddress,
415  uint8_t mask);
416 
417 //*****************************************************************************
418 //
419 //! \brief Sets the UART module in dormant mode
420 //!
421 //! Puts USCI in sleep mode. Only characters that are preceded by an idle-line
422 //! or with address bit set UCRXIFG. In UART mode with automatic baud-rate
423 //! detection, only the combination of a break and sync field sets UCRXIFG.
424 //!
425 //! \param baseAddress is the base address of the USCI_A_UART module.
426 //!
427 //! Modified bits of \b UCAxCTL1 register.
428 //!
429 //! \return None
430 //
431 //*****************************************************************************
432 extern void USCI_A_UART_setDormant(uint16_t baseAddress);
433 
434 //*****************************************************************************
435 //
436 //! \brief Re-enables UART module from dormant mode
437 //!
438 //! Not dormant. All received characters set UCRXIFG.
439 //!
440 //! \param baseAddress is the base address of the USCI_A_UART module.
441 //!
442 //! Modified bits are \b UCDORM of \b UCAxCTL1 register.
443 //!
444 //! \return None
445 //
446 //*****************************************************************************
447 extern void USCI_A_UART_resetDormant(uint16_t baseAddress);
448 
449 //*****************************************************************************
450 //
451 //! \brief Transmits the next byte to be transmitted marked as address
452 //! depending on selected multiprocessor mode
453 //!
454 //! \param baseAddress is the base address of the USCI_A_UART module.
455 //! \param transmitAddress is the next byte to be transmitted
456 //!
457 //! Modified bits of \b UCAxTXBUF register and bits of \b UCAxCTL1 register.
458 //!
459 //! \return None
460 //
461 //*****************************************************************************
462 extern void USCI_A_UART_transmitAddress(uint16_t baseAddress,
463  uint8_t transmitAddress);
464 
465 //*****************************************************************************
466 //
467 //! \brief Transmit break.
468 //!
469 //! Transmits a break with the next write to the transmit buffer. In UART mode
470 //! with automatic baud-rate detection,
471 //! USCI_A_UART_AUTOMATICBAUDRATE_SYNC(0x55) must be written into UCAxTXBUF to
472 //! generate the required break/sync fields. Otherwise, DEFAULT_SYNC(0x00) must
473 //! be written into the transmit buffer. Also ensures module is ready for
474 //! transmitting the next data.
475 //!
476 //! \param baseAddress is the base address of the USCI_A_UART module.
477 //!
478 //! Modified bits of \b UCAxTXBUF register and bits of \b UCAxCTL1 register.
479 //!
480 //! \return None
481 //
482 //*****************************************************************************
483 extern void USCI_A_UART_transmitBreak(uint16_t baseAddress);
484 
485 //*****************************************************************************
486 //
487 //! \brief Returns the address of the RX Buffer of the UART for the DMA module.
488 //!
489 //! Returns the address of the UART RX Buffer. This can be used in conjunction
490 //! with the DMA to store the received data directly to memory.
491 //!
492 //! \param baseAddress is the base address of the USCI_A_UART module.
493 //!
494 //! \return Address of RX Buffer
495 //
496 //*****************************************************************************
497 extern uint32_t USCI_A_UART_getReceiveBufferAddressForDMA(uint16_t baseAddress);
498 
499 //*****************************************************************************
500 //
501 //! \brief Returns the address of the TX Buffer of the UART for the DMA module.
502 //!
503 //! Returns the address of the UART TX Buffer. This can be used in conjunction
504 //! with the DMA to obtain transmitted data directly from memory.
505 //!
506 //! \param baseAddress is the base address of the USCI_A_UART module.
507 //!
508 //! \return Address of TX Buffer
509 //
510 //*****************************************************************************
511 extern uint32_t USCI_A_UART_getTransmitBufferAddressForDMA(uint16_t baseAddress);
512 
513 //*****************************************************************************
514 //
515 // Mark the end of the C bindings section for C++ compilers.
516 //
517 //*****************************************************************************
518 #ifdef __cplusplus
519 }
520 #endif
521 
522 #endif
523 #endif // __MSP430WARE_USCI_A_UART_H__
uint8_t firstModReg
Definition: usci_a_uart.h:50
uint8_t USCI_A_UART_receiveData(uint16_t baseAddress)
Receives a byte that has been sent to the UART Module.
Definition: usci_a_uart.c:94
uint8_t USCI_A_UART_getInterruptStatus(uint16_t baseAddress, uint8_t mask)
Gets the current UART interrupt status.
Definition: usci_a_uart.c:137
void USCI_A_UART_enable(uint16_t baseAddress)
Enables the UART block.
Definition: usci_a_uart.c:149
void USCI_A_UART_resetDormant(uint16_t baseAddress)
Re-enables UART module from dormant mode.
Definition: usci_a_uart.c:172
uint8_t uartMode
Definition: usci_a_uart.h:77
void USCI_A_UART_transmitAddress(uint16_t baseAddress, uint8_t transmitAddress)
Transmits the next byte to be transmitted marked as address depending on selected multiprocessor mode...
Definition: usci_a_uart.c:177
void USCI_A_UART_disable(uint16_t baseAddress)
Disables the UART block.
Definition: usci_a_uart.c:155
uint8_t overSampling
Definition: usci_a_uart.h:82
Used in the USCI_A_UART_init() function as the param parameter.
Definition: usci_a_uart.h:39
void USCI_A_UART_transmitBreak(uint16_t baseAddress)
Transmit break.
Definition: usci_a_uart.c:187
void USCI_A_UART_transmitData(uint16_t baseAddress, uint8_t transmitData)
Transmits a byte from the UART Module.
Definition: usci_a_uart.c:81
uint32_t USCI_A_UART_getReceiveBufferAddressForDMA(uint16_t baseAddress)
Returns the address of the RX Buffer of the UART for the DMA module.
Definition: usci_a_uart.c:208
void USCI_A_UART_setDormant(uint16_t baseAddress)
Sets the UART module in dormant mode.
Definition: usci_a_uart.c:167
uint32_t USCI_A_UART_getTransmitBufferAddressForDMA(uint16_t baseAddress)
Returns the address of the TX Buffer of the UART for the DMA module.
Definition: usci_a_uart.c:213
uint8_t selectClockSource
Definition: usci_a_uart.h:44
void USCI_A_UART_disableInterrupt(uint16_t baseAddress, uint8_t mask)
Disables individual UART interrupt sources.
Definition: usci_a_uart.c:120
void USCI_A_UART_clearInterrupt(uint16_t baseAddress, uint8_t mask)
Clears UART interrupt sources.
Definition: usci_a_uart.c:143
uint8_t msborLsbFirst
Definition: usci_a_uart.h:65
bool USCI_A_UART_init(uint16_t baseAddress, USCI_A_UART_initParam *param)
Advanced initialization routine for the UART block. The values to be written into the clockPrescalar...
Definition: usci_a_uart.c:21
uint8_t USCI_A_UART_queryStatusFlags(uint16_t baseAddress, uint8_t mask)
Gets the current UART status flags.
Definition: usci_a_uart.c:161
void USCI_A_UART_enableInterrupt(uint16_t baseAddress, uint8_t mask)
Enables individual UART interrupt sources.
Definition: usci_a_uart.c:105
uint8_t numberofStopBits
Definition: usci_a_uart.h:70
uint8_t parity
Definition: usci_a_uart.h:60
uint16_t clockPrescalar
Is the value to be written into UCBRx bits.
Definition: usci_a_uart.h:46
uint8_t secondModReg
Definition: usci_a_uart.h:54

Copyright 2020, Texas Instruments Incorporated