High level interface for interacting with the Cypress digital routing.
This provides limited facilities for runtime manipulation of the on chip routing. The following types of connections are supported:
- Connection from a peripheral to a pin. (A dedicated connection must exist between the pin and the peripheral; see the device datasheet for more details)
- Experimental support for connecting between two on-chip "trigger" terminals.
◆ CYHAL_CONNECT_RSLT_NO_CONNECTION
No connection is available
◆ CYHAL_CONNECT_RSLT_ALREADY_CONNECTED
The connections source and destination are already connected
◆ CYHAL_CONNECT_RSLT_INVALID_TRIGGER_CONNECTION
Invalid trigger connection
◆ CYHAL_INTERCONNECT_MUX_NOT_CONTINUATION
| #define CYHAL_INTERCONNECT_MUX_NOT_CONTINUATION 0xFF |
Indicates that a mux output does not continue to another mux
◆ cyhal_connect_pin()
| cy_rslt_t cyhal_connect_pin |
( |
const cyhal_resource_pin_mapping_t * |
pin_connection | ) |
|
Connect a pin to a peripheral terminal. This will route a direct connect from the pin to the peripheral. Any previous direct connection from the pin will be overriden.
- Parameters
-
| [in] | pin_connection | Details about the pin and its target connection |
- Returns
- The status of the connect request
◆ cyhal_disconnect_pin()
| cy_rslt_t cyhal_disconnect_pin |
( |
cyhal_gpio_t |
pin | ) |
|
Disconnect a peripheral from a pin. This will also reset the pin's drive mode to High-Z.
- Parameters
-
| [in] | pin | The pin to disconnect |
- Returns
- The status of the disconnect request
◆ cyhal_connect_trigger()
WORK IN PROGRESS. This function is not yet fully implemented. Connects two digital terminals on the device using any internal interconnect. As expected, a single source can drive multiple destinations, but a destination can only be driven by a single source. If the output is already connected, or the connection can not be established an error will be returned.
- Parameters
-
| [in] | source | The source of the signal to connect |
| [in] | dest | The destination of the signal to connect |
- Returns
- The status of the connect request