XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:CAN收发器:通用型104x/105x系列收发器:驱动 更多...
#include <xwos/standard.h>
#include <xwos/osal/irq.h>
#include <xwcd/ds/soc/gpio.h>
#include <xwcd/ds/soc/eirq.h>
#include <xwcd/ds/can/transceiver.h>
#include <xwcd/peripheral/can/transceiver/xxx10xx/driver.h>
函数 | |
static xwer_t | xwds_cantrcv_xxx10xx_check_desc (struct xwds_cantrcv_xxx10xx *xxx10xx) |
xwer_t | xwds_cantrcv_xxx10xx_drv_probe (struct xwds_device *dev) |
XXX10XX基本驱动:探测设备 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_start (struct xwds_device *dev) |
XXX10XX基本驱动:启动设备 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_stop (struct xwds_device *dev) |
XXX10XX基本驱动:停止设备 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_suspend (struct xwds_device *dev) |
XXX10XX基本驱动:暂停设备 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_resume (struct xwds_device *dev) |
XXX10XX基本驱动:继续设备 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_set_opmode (struct xwds_cantrcv *cantrcv, xwsq_t opmode) |
XXX10XX CAN接收器驱动:设置CAN接收器的运行模式 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_enable_wkup (struct xwds_cantrcv *cantrcv) |
XXX10XX CAN接收器驱动:开启CAN接收器的唤醒 | |
xwer_t | xwds_cantrcv_xxx10xx_drv_disable_wkup (struct xwds_cantrcv *cantrcv) |
XXX10XX CAN接收器驱动:关闭CAN接收器的唤醒 | |
void | xwds_cantrcv_xxx10xx_eirq_wkup (struct xwds_soc *soc, xwid_t eiid, xwds_eirq_arg_t arg) |
XXX10XX中断函数 | |
变量 | |
const struct xwds_cantrcv_driver | xwds_cantrcv_xxx10xx_drv |
XXX10XX的驱动集合 | |
玄武设备栈:CAN收发器:通用型104x/105x系列收发器:驱动
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.
在文件 driver.c 中定义.
|
static |
xwer_t xwds_cantrcv_xxx10xx_drv_disable_wkup | ( | struct xwds_cantrcv * | cantrcv | ) |
XXX10XX CAN接收器驱动:关闭CAN接收器的唤醒
[in] | cantrcv | CAN接收器对象指针 |
XWOK | 没有错误 |
-EFAULT | 空指针 |
-EOPNOTSUPP | 不支持此API |
xwer_t xwds_cantrcv_xxx10xx_drv_enable_wkup | ( | struct xwds_cantrcv * | cantrcv | ) |
XXX10XX CAN接收器驱动:开启CAN接收器的唤醒
[in] | cantrcv | CAN接收器对象指针 |
XWOK | 没有错误 |
-EFAULT | 空指针 |
-EOPNOTSUPP | 不支持此API |
xwer_t xwds_cantrcv_xxx10xx_drv_resume | ( | struct xwds_device * | dev | ) |
xwer_t xwds_cantrcv_xxx10xx_drv_set_opmode | ( | struct xwds_cantrcv * | cantrcv, |
xwsq_t | opmode | ||
) |
XXX10XX CAN接收器驱动:设置CAN接收器的运行模式
[in] | cantrcv | CAN接收器对象指针 |
[in] | opmode | 唤醒模式 |
XWOK | 没有错误 |
-EFAULT | 空指针 |
-ERANGE | 不支持的模式 |
<No error
xwer_t xwds_cantrcv_xxx10xx_drv_start | ( | struct xwds_device * | dev | ) |
XXX10XX基本驱动:启动设备
<No error
xwer_t xwds_cantrcv_xxx10xx_drv_stop | ( | struct xwds_device * | dev | ) |
XXX10XX基本驱动:停止设备
<No error
xwer_t xwds_cantrcv_xxx10xx_drv_suspend | ( | struct xwds_device * | dev | ) |
XXX10XX基本驱动:暂停设备
<No error
void xwds_cantrcv_xxx10xx_eirq_wkup | ( | struct xwds_soc * | soc, |
xwid_t | eiid, | ||
xwds_eirq_arg_t | arg | ||
) |
XXX10XX中断函数
< 去除未使用变量的警告
const struct xwds_cantrcv_driver xwds_cantrcv_xxx10xx_drv |
XXX10XX的驱动集合