CANBus 関数ライブラリー

86Duino IDE が Coding 103 からこの関数ライブラリーを加え、CAN bus (Controller Area Network) コミュニケーション インターフェイスをアクセスする。
CAN は一般的な工業コミュニケーション インターフェイスの一つとして、ハイレベルセキュリティ及び効率的なリアルタイムを対応の上、色々な車やFAで使われている。
86Duino の内蔵 CAN Bus コントローラの特徴:

  • CAN 2.0A 及び2.0B規定に対応
  • 1 Mbpsまで転送スピード対応
  • standard (11-bit) 及びextended (29-bit) の data/remote frame 転送対応
  • 三つ frame buffer を提供
  • エラー検出及び処理機能

Arduino ユーサーにこの関数ライブラリーをもっと使いやすくするため、関数ライブラリー API の設計上に Wire 関数及び Seeed Studio の CAN Bus 関数ライブラリーを似せてさせている。下記は各々関数の使い方。

Functions

begin()
init_Mask()
init_Filt()
beginTransmission()
endTransmission()
write()
requestFrom()
read()
available()
remoteExt()
remoteID()
sendMsgBuf()
readMsgBuf()
checkReceive()
getCanId()


ライブラリリスト

The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.