Skip to content

HardwareSerial Error Callback #1162

Description

@0x6d61726b

For implementing a custom protocol handler based on UART, it is necessary to get knowledge about the LIN Break Detection, Framing Error and Parity Error signals. What is the proposed way for such an implementation?

Would it be ok to propose an extenions of the HarewareSerial class to provide a error callback mechanism that gets called by the HAL_UART_ErrorCallback()? If so, I would be happy to make such a proposal for further discussion.

Activity

  1. fpistm commented on Sep 1, 2020

    @fpistm
    Member

    Hi @0x6d61726b
    HardwareSerial follows the Arduino API that's why there is no error CB.
    Anyway feel free to contribute and propose a PR, any contribution are welcome.
    But pay attention to not break the standard API 😉

  2. 0x6d61726b commented on Sep 1, 2020

    @0x6d61726b
    Author

    Hi @fpistm, thanks for the positive feedback. 😊
    I was unsure if an extension is possible.
    Not altering the standard API functionality is taken for granted.

    I will come back in the next days with the proposal.

  3. fpistm commented on Jun 11, 2021

    @fpistm
    Member

    Added to [U(S)ART] request list #1418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions