ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.66k stars 2.97k forks source link

Using Break on Serial Interface is blocked by BufferedInterface #15244

Open thl-mot opened 2 years ago

thl-mot commented 2 years ago

Description of defect

I need to send a break signal on serial wire. Due to thre private declaration of SerialBase on BufferedSerial the method send_break() is not usable on BufferedSerial. For serial protocolls like DMX512 or SDI-12 a break signal is essential.

Target(s) affected by this defect ?

Toolchain(s) (name and version) displaying this defect ?

What version of Mbed-os are you using (tag or sha) ?

mbed-os 6.15.1

Commit: 2eb06e76208588afc6cb7580a8dd64c5429a10ce Imported from: https://github.com/ARMmbed/mbed-os/

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed-Studio

How is this defect reproduced ?

Call to method send_break() is marked as error by the compiler.

mbedmain commented 2 years ago

@thl-mot thank you for raising this issue.Please take a look at the following comments:

What target(s) are you using? What toolchain(s) are you using?

NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information.

0xc0170 commented 2 years ago

One way would be to expose the method via BufferedSerial. You can send a pull request for review.

thl-mot commented 2 years ago

My Hardware is a LoRa-E5 (Based on MCU_STM32WLE5xC, "device_name": "STM32WLE5JCIx").