XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:CAN:总线接收器 更多...
#include <xwcd/ds/standard.h>
#include <xwos/lib/xwbop.h>
#include <xwcd/ds/device.h>
#include <xwcd/ds/can/controller.h>
#include <xwcd/ds/i2c/peripheral.h>
#include <xwcd/ds/spi/peripheral.h>
结构体 | |
struct | xwds_cantrcv_cfg |
CAN接收器配置 更多... | |
struct | xwds_cantrcv_driver |
BSP中需要提供的CAN接收器驱动函数表 更多... | |
struct | xwds_cantrcv |
CAN接收器 更多... | |
类型定义 | |
typedef void(* | xwds_cantrcv_wkup_isr_f) (struct xwds_cantrcv *, struct xwds_canc *) |
唤醒中断回调函数 | |
函数 | |
void | xwds_cantrcv_construct (struct xwds_cantrcv *cantrcv) |
XWDS API:CAN接收器的构造函数 | |
void | xwds_cantrcv_destruct (struct xwds_cantrcv *cantrcv) |
XWDS API:CAN接收器对象的析构函数 | |
xwer_t | xwds_cantrcv_grab (struct xwds_cantrcv *cantrcv) |
XWDS API:增加对象的引用计数 | |
xwer_t | xwds_cantrcv_put (struct xwds_cantrcv *cantrcv) |
XWDS API:减少对象的引用计数 | |
xwer_t | xwds_cantrcv_set_opmode (struct xwds_cantrcv *cantrcv, xwsq_t opmode) |
XWDS API:设置CAN接收器的运行模式 | |
void | xwds_cantrcv_get_opmode (struct xwds_cantrcv *cantrcv, xwsq_t *opmode) |
XWDS API:设置CAN接收器的模式 | |
xwer_t | xwds_cantrcv_enable_wkup (struct xwds_cantrcv *cantrcv) |
XWDS API:开启CAN接收器的唤醒 | |
xwer_t | xwds_cantrcv_disable_wkup (struct xwds_cantrcv *cantrcv) |
XWDS API:关闭CAN接收器的唤醒 | |
void | xwds_cantrcv_set_wkup_isr (struct xwds_cantrcv *cantrcv, xwds_cantrcv_wkup_isr_f isr) |
XWDS API:设置唤醒中断的回调函数 | |
void | xwds_cantrcv_get_wkuprs (struct xwds_cantrcv *cantrcv, xwsq_t *wkuprs) |
XWDS API:获取CAN接收器的唤醒原因 | |
void | xwds_cantrcv_clear_wkuprs (struct xwds_cantrcv *cantrcv) |
XWDS API:清除CAN接收器的唤醒原因 | |
void | xwds_cantrcv_drvcb_wakeup_notification (struct xwds_cantrcv *cantrcv) |
CAN接收器回调函数:CAN接收器的唤醒通知 | |
玄武设备栈:CAN:总线接收器
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.
在文件 transceiver.h 中定义.