Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UARTx get free space in tx_buffer_size (uart_driver_install) (IDFGH-7348) #8932

Closed
imwhocodes opened this issue May 10, 2022 · 4 comments
Closed
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF

Comments

@imwhocodes
Copy link

New version of arduino-esp32 add function to set tx_buffer_size that is used by uart_driver_install

This add the ability to add arbitrary buffer that is then copied on TxFiFo of the UART when free

The problem now become that inside esp-idf there is no function to get free space left on the TX Buffer allocated internally by uart_driver_install(...)

Currently Arduino implementation check UART registers get free space left in TxFiFo, but of course the value stored in the register keep count only of the space free in TxFiFo and not the extra RAM allocated buffer by uart_driver_install(...)

Is possible to have a function similar to uart_get_buffered_data_len that return data pending for write? or space left maybe?

Or there is any other way to extract that information from esp-idf?

Thanks,
Luca

@imwhocodes imwhocodes added the Type: Feature Request Feature request for IDF label May 10, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label May 10, 2022
@github-actions github-actions bot changed the title UARTx get free space in tx_buffer_size (uart_driver_install) UARTx get free space in tx_buffer_size (uart_driver_install) (IDFGH-7348) May 10, 2022
@imwhocodes
Copy link
Author

Hi

Any hints on how to get that informations in other ways?

Thanks,
Luca

@AxelLin
Copy link
Contributor

AxelLin commented May 18, 2022

#3078

@ginkgm
Copy link
Collaborator

ginkgm commented May 18, 2022

Hi @imwhocodes ,

Good idea, we will add this.

@imwhocodes
Copy link
Author

Hi

Is there any ETA for this feature?
I thought you already have the used buffer qty somewhere internally to the API, is it only matter to expose a get function to the user side?

Thanks,
Luca

@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development and removed Status: Opened Issue is new labels Jun 27, 2022
@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Selected for Development Issue is selected for development Status: Reviewing Issue is being reviewed Resolution: NA Issue resolution is unavailable labels Jun 29, 2022
espressif-bot pushed a commit that referenced this issue Jul 15, 2022
ebisuke pushed a commit to ebisuke/esp-idf that referenced this issue Jan 8, 2023
ebisuke pushed a commit to ebisuke/esp-idf that referenced this issue Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

5 participants