Difference between revisions of "HANcoder/STM32/Blocks/UART Receive Buffer Status"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
(Created page with "{{HANcoder/block| info= Obtains the number of received bytes that are currently stored in the reception buffer. '''Outport''' This block outputs the number of bytes curren...")
 
Line 1: Line 1:
 
{{HANcoder/block|
 
{{HANcoder/block|
 
info=
 
info=
 
 
Obtains the number of received bytes that are currently stored in the  
 
Obtains the number of received bytes that are currently stored in the  
 
reception buffer.
 
reception buffer.
 
'''Outport'''
 
 
This block outputs the number of bytes currently stored in the reception buffer.
 
 
 
  
 
|blockImage=UARTReceiveBufferStatus.png
 
|blockImage=UARTReceiveBufferStatus.png
 +
|maskImage=UARTReceiveBufferStatusMask.png
 +
}}
 +
== Outputs (outports) ==
 +
The number of bytes currently stored in the reception buffer.
  
 +
== Block parameters ==
 +
{| class="wikitable"
 +
|-
 +
! style="width:150px" | Parameter
 +
! Description
 +
|-
 +
| Channel
 +
| Select channel for UART communication
 +
|-
 +
| Use status output
 +
| When this checkbox is ticked an extra output appears which show the status of the reception buffer.
 +
|-
 +
| Sample time
 +
| The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz.
 +
|}
  
|maskImage=UARTReceiveBufferStatusMask.png
+
== Examples ==
 
+
[[HANcoder/Examples/??|??]]
|Channel= Selected Channel
 
  
 +
{{HANcoder/BlockFooter|
 +
|SeeAlso = [[HANcoder/UART_Init|UART Init]] {{!}} [[HANcoder/UART_Receive|UART Receive]] {{!}} [[HANcoder/UART_Send|UART Send]]
 
}}
 
}}

Revision as of 15:12, 28 April 2017

Supported Targets: Olimexino, E407, P405

General information about UART Receive Buffer Status

Obtains the number of received bytes that are currently stored in the reception buffer.

Block

UARTReceiveBufferStatus.png

Mask

UARTReceiveBufferStatusMask.png

Outputs (outports)

The number of bytes currently stored in the reception buffer.

Block parameters

Parameter Description
Channel Select channel for UART communication
Use status output When this checkbox is ticked an extra output appears which show the status of the reception buffer.
Sample time The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz.

Examples

??

See Also

UART Init | UART Receive | UART Send