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.

软 件 外 设 函 数 库CAN2510InterruptEnable功 能 : 将 CAN2510 的 中 断 允 许 位 (CANINTE 寄 存 器 ) 修 改 为 新 值 。所 要 求 的 CAN 模 式 : 所 有 模 式 均 可包 含 头 文 件 : can2510.h,spi_can.h原 型 :void CAN2510InterruptEnable(unsigned char interruptEnables );参 数 :interruptEnablesinterruptEnable 的 值 是 下 列 值 的 位 与 (‘&’)。 由 粗 体 标 出 的 选 项 是默 认 值 。 通 过 CANINTE 寄 存 器 的 所 有 位 来 控 制 。说 明 :文 件 名 :CAN2510_NONE_EN 不 允 许 任 何 中 断 (00000000)CAN2510_MSGERR_EN 在 报 文 接 收 或 发 送 过 程 中 出 现 错 误 时 产 生中 断(10000000)CAN2510_WAKEUP_EN 在 CAN 总 线 工 作 时 产 生 中 断(01000000)CAN2510_ERROR_EN EFLG 错 误 条 件 变 化 时 产 生 中 断(00100000)CAN2510_TXB2_EN 在 发 送 缓 冲 区 2 为 空 时 产 生 中 断(00010000)CAN2510_TXB1_EN 在 发 送 缓 冲 区 1 为 空 时 产 生 中 断(00001000)CAN2510_TXB0_EN 在 发 送 缓 冲 区 0 为 空 时 产 生 中 断(00000100)CAN2510_RXB1_EN 当 接 收 缓 冲 区 1 收 到 报 文 时 产 生 中 断(00000010)CAN2510_RXB0_EN 当 接 收 缓 冲 区 0 收 到 报 文 时 产 生 中 断(00000001)该 函 数 用 对 所 期 望 中 断 源 进 行 位 与 操 作 所 得 的 值 来 更 新 CANINTE 寄 存器 。caninte.c© 2004 Microchip Technology Inc. DS51297C_CN 第 81 页

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

Saved successfully!

Ooh no, something went wrong!