XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:SOC:电源 更多...
函数 | |
xwer_t | xwds_pwr_req (struct xwds_soc *soc, xwid_t id) |
XWDS API:申请电源 | |
xwer_t | xwds_pwr_rls (struct xwds_soc *soc, xwid_t id) |
XWDS API:释放电源 | |
xwer_t | xwds_pwr_getvltg (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.
在文件 power.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