Articles Posted in the " " Category

  • remoteID()

    remoteID()

    説明 CAN bus より資料 IDを取得する。 語法 CAN.remoteID() パラメータ 無 戻り値 取得したデータID See also - remoteExt() Libraries Reference Home 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.


  • remoteExt()

    remoteExt()

    説明 CAN busよりデータを取得する形式。 語法 CAN.remoteExt() パラメータ None 戻り値 資料を得るための形式。以下の四種類がある: CAN_STDID:標準データ画像 CAN_EXTID:データ画像展開 CAN_STDID_REMOTE:標準遠端画像 CAN_EXTID_REMOTE:遠端画像展開 See also - remoteID() Libraries Reference Home 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.


  • available()

    available()

    説明 CAN FIFOには読み取り可能な値を含むか。 語法 CAN.available() パラメータ 無 戻り値 FIFOに読み取り可能なbyte数 例 See also - requestFrom() - read() Libraries Reference Home 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.


  • read()

    read()

    説明 讀取 CAN FIFO 中的資料。 語法 CAN.read() パラメータ 無 戻り値 もし FIFO からではないとするならば, 1 byteを送信した值であるが,しかしながら -1となる。 例 See also - requestFrom() - available() Libraries Reference Home 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.


  • requestFrom()

    requestFrom()

    説明 CAN bus 上のデータを取得する。 語法 CAN.requestFrom() パラメータ 無 戻り値 取得したbyte 数 例 See also - available() - read() Libraries Reference Home 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.


  • endTransmission()

    endTransmission()

    説明 CANのデータ転送。 語法 CAN.endTransmission() パラメータ 無 戻り値 0:成功を表す -1:失敗を表す 例 See also - beginTransmission() - write() Libraries Reference Home 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.


  • write()

    write()

    説明 指定したデータの送信。 語法 CAN.write(val) CAN.write(buf, len) パラメータ val:送信すべきデータ (unsigned char 型別) buf:送信すべきデータの順序 len:サイズの順序 戻り値 Byte数を書き出す 例 See also - beginTransmission() - endTransmission() Libraries Reference Home 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.


  • beginTransmission()

    beginTransmission()

    説明 伝送状態を初期化する。注意点:この関数の用法とWire関数におけるbeginTransmission() は相似し,必ず後面に近接する write() と endTransmission()連結する必要があり,そうすることにより一次送信は完成する。 語法 CAN.beginTransmission(id) CAN.beginTransmission(id, ext) パラメータ id:外部のCAN device のID数値。 ext:資料送信時の形式。個のパラメーターは必ずしも必要なものではないが,もしこのパラメーターを入力しない場合には,予め CAN_STDIDを設定しておくこと。 CAN_STDID:CAN 2.0A規範に符合し,ID範囲は:0 ~ 0x7FF CAN_EXTID:資料画像を展開し, CAN 2.0B規範を使用する,ID範囲は:0 ~ 0x1FFFFFFF CAN_STDID_REMOTE:標準遠端画像, CAN 2.0A規範に符合し,ID範囲は:0 ~ 0x7FF CAN_EXTID_REMOTE:遠端画像を展開し, CAN 2.0B規範に符合し,ID範囲は:0 ~ 0x1FFFFFFF 戻り値 非戻り値 例 See also - write() - endTransmission() Libraries Reference Home The text of the 86Duino reference is licensed […]


  • begin()

    begin()

    説明 CANBus関数を初期化する。 語法 CAN.begin() CAN.begin(speed) パラメータ speed:CAN の送信速度は,以下の10 種類の速度から選ぶことが可能。このパラメーターは必ずしも必要なものではなく,もし設定を行わなくても,あらかじめ10KBPSで速度が設定されている。 CAN_10KBPS CAN_20KBPS CAN_50KBPS CAN_83K3BPS CAN_100KBPS CAN_125KBPS CAN_250KBPS CAN_500KBPS CAN_833KBPS CAN_1000KBPS 戻り値 非戻り値 例 See also - beginTransmission() - write() - endTransmission() Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released […]