This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: Where is the operation interface for the Line-break related functions of the uart driver? No UARTBreakCtl()

Part Number: CC2340R5
Other Parts Discussed in Thread: CC2640,

Hi Team,

How to access the Line-break function of uart peripheral? We need to use it to implement the break signal of the LIN bus

No break-related hardware operation interfaces, such as UARTBreakCtl(), were found in uart-related APIs such as #include DeviceFamily_constructPath(driverlib/uart.h). There is no relevant interface.

Best Regards,

Galaxy

  • Hello Galaxy,

    I hope you are doing well. To double check, you are trying to quickly stop the UART, similar to a "Break" function. As you have stated, I did not find any specific function that does UARTBreakCtl(). 

    We do have an interrupt for the "Break Error" (UART_INT_BE) for UARTEnableInt(). 

    We could also try a UARTDisable; or a UART_close (or UART2_writeCancel). (Driver Lib Link). Could you expand on exactly what is needed when stopping the UART? 

    -This was for the 7.40 SDK. 

    Thanks,
    Alex F

  • Hi Alex F,

    He said,

    What I need is the line-break function clearly mentioned in the CC2340Ref manual about uart peripherals. Please re-understand my question. It is not an interrupt. In CC2640, the driver function UARTBreakCtl() exists.

    Best Regards,

    Galaxy

  • Hello Galaxy,

    I reached out to our internal team about if we have a function for line-break for the CC2340R5 device; as well as what was meant by "Line-break generation...". I am currently awaiting their response, and I will update this E2E post when I receive more information!

    Thanks,
    Alex F