CAN组件

一、特性

    1.1、chanael ~通道、信道

        external ~外部;no can device ~没有CAN设备

·  1.2、controller osc ~控制器震荡频率

    1.3、bus rate 总线速率

    1.4、sync jump width  同步跳跃宽度

    1.5、sample point  采样点

    1.6、id type  ID类型

    1.7、standard only 仅标准;standard & extended 标准和扩展

2、connections 连接

2.1、spi

    2.1.1、channel 通道、信道~software 软件;channel 通道、信道

    2.1.2、MOSI ~主出 从入

spi data out pin SDO ~ AlSO known as master out slave in (MOSI) when used in master mode ~spi数据输出引脚SDO〜在主机模式下使用时也称为主机输出从机输入(MOSI)

(SDO一般指服务数据对象。Service Data Objects (SDO)是一种针对在不同的数据源之间使用统一的数据编程模型的规范说明)

    2.1.3、MISO ~主入 从出

spi data in pin SDI ~also konwn as master in slave out(miso) when used in master mode ~SDI引脚上的spi数据〜主机模式下使用时也称为主机输入、从机输出(miso)

    2.1.4、CLK ~时钟

SPI clock pin CLK ~ the clock signal in driver by the spi master ~SPI时钟引脚CLK〜SPI主驱动器中的时钟信号

    2.1.5、SS

chip select / slave select pin ~片选/从选择引脚

master mode:generat purpose output pin used to select the remote spi device ~主模式:通用输出引脚,用于选择远程SPI设备

slave mode:hardware chip select pin input used to select the spi sevice ~从机模式:硬件芯片选择引脚输入,用于选择spi服务

    2.1.6、prescale 预分频

fosc ~系统频率;晶体振荡器频率

2.1.7、sample point  采样点

Data bit read sample point ~数据位读取采样点

3、TX Buffer 0  发送缓冲区0

3.1、Message ID 讯息编号

TX Buffer 0 Message Identifier ~TX缓冲区0消息标识符

4、RX Buffer 0 发送

RX Buffer 0 Message Receive Mode ~Rx缓冲区0消息接收模式

Settings ~设定值

    Reject All ~全部拒绝

    Use Mask and Filter ~使用遮罩和滤镜

    Accept All ~接受所有的

5、Rx Buffer 1

6、aimulation 模拟

二、宏

1、CheckRx  检查接收

Checks to see if any messages are available for 'Buffer' specified ~检查是否有任何消息可用于指定的“缓冲区”

Send buffer: 0 to 1

 ~参数:发送缓冲区:0到1

2、GetRxData 获取接收数据

Returns last received message data byte at position Index. ~返回位置Index处最后收到的消息数据字节。

Buffer parameter is currently ignored ~当前忽略缓冲区参数

3、GetRxDataCount 获取接收数据计数

Returns last received message data length. ~返回最后收到的消息数据长度。

Buffer parameter is currently ignored ~当前忽略缓冲区参数

4、GetRxIDHi  获取接收ID的高字节

Gets the Hi byte Rx ID in register format. ~以寄存器格式获取的高字节的RX ID

Standard ID only 0-2047. ~标准ID仅0-2047。

Compatible with v5 component and previous, ~与v5组件及以前的版本兼容,

5、GetRxIDLo 获取接收ID的低字节

Gets the Lo byte Rx ID in register format. ~以寄存器格式获取Lo字节的Rx ID。

Standard ID only 0-2047. ~标准ID仅0-2047。

Compatible with v5 component and previous, ~与v5组件及以前的版本兼容,

还有 54% 的精彩内容
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
支付 ¥20.00 继续阅读

推荐阅读更多精彩内容

友情链接更多精彩内容