![]() |
RTEMS 6.3
|
Functions | |
| ALT_STATUS_CODE | alt_clk_clock_disable (ALT_CLK_t clk) |
| ALT_STATUS_CODE | alt_clk_clock_enable (ALT_CLK_t clk) |
| ALT_STATUS_CODE | alt_clk_is_enabled (ALT_CLK_t clk) |
This functional group provides gating control of selected clock signals.
When a clock is enabled, then its clock signal propogates to its respective clocked IP block(s). When a clock is disabled, then its clock signal is prevented from propogating to its respective clocked IP block(s).
The following clocks may be gated:
| ALT_STATUS_CODE alt_clk_clock_disable | ( | ALT_CLK_t | clk | ) |
Disable the specified clock. Once the clock is disabled, its clock signal does not propogate to its clocked elements.
| clk | The clock to disable. |
| ALT_E_SUCCESS | The operation was succesful. |
| ALT_E_ERROR | The operation failed. |
| ALT_E_BAD_ARG | The clk argument designates a non gated clock value. |
| ALT_STATUS_CODE alt_clk_clock_enable | ( | ALT_CLK_t | clk | ) |
Enable the specified clock. Once the clock is enabled, its clock signal propogates to its elements.
| clk | The clock to enable. |
| ALT_E_SUCCESS | The operation was succesful. |
| ALT_E_ERROR | The operation failed. |
| ALT_E_BAD_ARG | The clk argument designates a non gated clock value. |
| ALT_STATUS_CODE alt_clk_is_enabled | ( | ALT_CLK_t | clk | ) |
Return whether the specified clock is enabled or not.
| clk | The clock to check whether enabled or not. |
| ALT_E_TRUE | The clock is enabled. |
| ALT_E_FALSE | The clock is not enabled. |
| ALT_E_BAD_ARG | The clk argument designates a non gated clock value. |