XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:SOC:时钟 更多...
函数 | |
xwer_t | xwds_clk_req (struct xwds_soc *soc, xwid_t id) |
XWDS API:申请时钟 | |
xwer_t | xwds_clk_rls (struct xwds_soc *soc, xwid_t id) |
XWDS API:释放时钟 | |
xwer_t | xwds_clk_getfqcy (struct xwds_soc *soc, xwid_t id, xwu32_t *buf, xwsz_t *num) |
XWDS API:获取时钟频率 | |
玄武设备栈:SOC:时钟
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
在文件 clock.c 中定义.
XWDS API:获取时钟频率
[in] | soc | SOC对象指针 |
[in] | id | 时钟ID |
[out] | buf | 返回时钟频率的缓冲区的指针 |
[in,out] | num | 指向缓冲区的指针,此缓冲区:
|
XWOK | 没有错误 |
-EFAULT | 无效指针 |
-ERANGE | 时钟ID错误 |
-ENOSYS | 不支持的API |
<No error
XWDS API:释放时钟
[in] | soc | SOC对象指针 |
[in] | id | 时钟ID |
XWOK | 没有错误 |
-ERANGE | 时钟ID错误 |
-ENOSYS | 不支持的API |
<No error