XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:LIN:控制器 更多...
#include <xwcd/ds/standard.h>
#include <xwos/lib/xwbop.h>
#include <xwos/osal/lock/mtx.h>
#include <xwcd/ds/device.h>
结构体 | |
struct | xwds_lin_msg |
LIN消息结构体 更多... | |
struct | xwds_lin_msg_info |
LIN消息信息 更多... | |
struct | xwds_lin_cfg |
LIN控制器配置 更多... | |
struct | xwds_linc_driver |
LIN控制器驱动函数表 更多... | |
struct | xwds_linc |
LIN控制器 更多... | |
宏定义 | |
#define | XWDS_LIN_DIAG_MSTREQ_MSG 0x3C |
#define | XWDS_LIN_DIAG_SLCREP_MSG 0x3D |
#define | XWDS_LIN_DEFAULT_DATA_SIZE 8 |
枚举 | |
enum | xwds_lin_mode_em { XWDS_LIN_MODE_CLOSE = 0 , XWDS_LIN_MODE_TX = ((xwbmp_t)1 << ( 0 )) , XWDS_LIN_MODE_RX = ((xwbmp_t)1 << ( 1 )) } |
LIN接口模式枚举 更多... | |
enum | xwds_lin_chksum_type_em { XWDS_LIN_CHKSUM_CLASSIC = 0 , XWDS_LIN_CHKSUM_ENHANCED } |
LIN协议类型 更多... | |
函数 | |
void | xwds_linc_construct (struct xwds_linc *linc) |
XWDS API:LIN控制器的构造函数 | |
void | xwds_linc_destruct (struct xwds_linc *linc) |
XWDS API:LIN控制器对象的析构函数 | |
xwer_t | xwds_linc_grab (struct xwds_linc *linc) |
XWDS API:增加对象的引用计数 | |
xwer_t | xwds_linc_put (struct xwds_linc *linc) |
XWDS API:减少对象的引用计数 | |
xwer_t | xwds_linc_msttx (struct xwds_linc *linc, xwu8_t id, struct xwds_lin_msg *msg, xwtm_t to) |
XWDS API:主机节点发送一条LIN消息 | |
xwer_t | xwds_linc_slvtx (struct xwds_linc *linc, struct xwds_lin_msg *msg, xwtm_t to) |
XWDS API:从机节点发送一条LIN消息 | |
xwer_t | xwds_linc_rx (struct xwds_linc *linc, struct xwds_lin_msg *msgbuf, xwtm_t to) |
XWDS API:接收一条LIN消息 | |
xwer_t | xwds_linc_get_msg_size (struct xwds_linc *linc, xwu8_t protected_id, xwu8_t *ret) |
XWDS API:通过LIN保护ID查询消息大小 | |
玄武设备栈:LIN:控制器
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.
在文件 controller.h 中定义.