Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Signals
Port signalling operations. More...
Functions | |
enum sp_return | sp_get_signals (struct sp_port *port, enum sp_signal *signal_mask) |
Gets the status of the control signals for the specified port. | |
enum sp_return | sp_start_break (struct sp_port *port) |
Put the port transmit line into the break state. | |
enum sp_return | sp_end_break (struct sp_port *port) |
Take the port transmit line out of the break state. |
Detailed Description
Port signalling operations.
Function Documentation
enum sp_return sp_end_break | ( | struct sp_port * | port ) |
Take the port transmit line out of the break state.
- Parameters:
-
[in] port Pointer to a port structure. Must not be NULL.
- Returns:
- SP_OK upon success, a negative error code otherwise.
- Since:
- 0.1.0
enum sp_return sp_get_signals | ( | struct sp_port * | port, |
enum sp_signal * | signal_mask | ||
) |
Gets the status of the control signals for the specified port.
The user should allocate a variable of type "enum sp_signal" and pass a pointer to this variable to receive the result. The result is a bitmask in which individual signals can be checked by bitwise OR with values of the sp_signal enum.
- Parameters:
-
[in] port Pointer to a port structure. Must not be NULL. [out] signal_mask Pointer to a variable to receive the result. Must not be NULL.
- Returns:
- SP_OK upon success, a negative error code otherwise.
- Since:
- 0.1.0
enum sp_return sp_start_break | ( | struct sp_port * | port ) |
Put the port transmit line into the break state.
- Parameters:
-
[in] port Pointer to a port structure. Must not be NULL.
- Returns:
- SP_OK upon success, a negative error code otherwise.
- Since:
- 0.1.0
Generated on Mon Jul 18 2022 19:02:24 by
