12.07.2015 Views

MPLAB® C18 C 编译器函数库

MPLAB® C18 C 编译器函数库

MPLAB® C18 C 编译器函数库

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MPLAB ® <strong>C18</strong> C 编 译 器 函 数 库CAN2510ByteRead功 能 : 读 取 由 地 址 指 定 的 MCP2510 寄 存 器 。要 求 的 CAN 模 式 :包 含 头 文 件 :原 型 :参 数 :所 有 模 式 均 可can2510.hunsigned char CAN2510ByteRead(unsigned char address );address要 从 中 读 取 数 据 的 MCP2510 寄 存 器 的 地 址 。说 明 : 该 函 数 按 照 指 定 地 址 从 MCP2510 读 取 一 字 节 数 据 。返 回 值 : 指 定 地 址 的 内 容 。文 件 名 :readbyte.cCAN2510ByteWrite功 能 : 写 一 个 值 到 由 地 址 指 定 的 MCP2510 寄 存 器 。要 求 的 CAN 模 式 : 所 有 模 式 均 可包 含 头 文 件 : can2510.h原 型 :void CAN2510ByteWrite(unsigned char address,unsigned char value );参 数 :address要 写 入 数 据 的 MCP2510 的 地 址 。value要 写 入 的 值 。说 明 : 该 函 数 向 由 地 址 指 定 的 MCP2510 寄 存 器 写 入 一 字 节 数 据 。文 件 名 :wrtbyte.cCAN2510DataRead功 能 : 从 指 定 的 接 收 缓 冲 区 中 读 取 报 文 。要 求 的 CAN 模 式 :包 含 头 文 件 :原 型 :参 数 :除 配 置 模 式 外 的 所 有 模 式can2510.hunsigned char CAN2510DataRead(unsigned char bufferNum,unsigned long *msgId,unsigned char *numBytes,unsigned char *data );bufferNum要 从 中 读 取 报 文 的 接 收 缓 冲 区 , 取 下 列 值 之 一 :CAN2510_RXB0 读 取 接 收 缓 冲 区 0CAN2510_RXB1 读 取 接 收 缓 冲 区 1msgId指 向 将 被 函 数 修 改 、 保 存 CAN 标 准 报 文 标 识 符 的 地 址 。DS51297C_CN 第 74 页© 2004 Microchip Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!