Description Retrieve the remote CAN bus ID from receiving data. Syntax CAN.remoteID() Parameters None Returns CAN bus ID transmitted the data 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.
Description Retrieve data format from incoming data on the CAN bus. Syntax CAN.remoteExt() Parameters None Returns Received data format. There are 4 different formats: CAN_STDID:standard data format CAN_EXTID:Extended data format CAN_STDID_REMOTE:standard remote data format CAN_EXTID_REMOTE:Extended remote data format See also - remoteID() Libraries Reference Home The text of the 86Duino reference is licensed under a […]
Description Function to check whether there are data to read from the CAN interface’s FIFO buffer. Syntax CAN.available() Parameters None Returns Number of byte of data to read from the FIFO buffer. Examples See also - requestFrom() - read() Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike […]
Description Function to read data from the CAN FIFO buffer. Syntax CAN.read() Parameters None Returns When there are data in the FIFO buffer, return 1 byte of data. When there is no data in the FIFO, return -1. Example See also - requestFrom() - available() Libraries Reference Home The text of the 86Duino reference is […]
Description Receive data from CAN bus. Syntax CAN.requestFrom() Parameters None Returns Number of byte received Examples 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.
Description End CAN bus data transmission. Syntax CAN.endTransmission() Parameters None Returns 0:Indicate function to end transmission is success. -1:Indicates function to end transmission failed. Examples 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 […]
Description Transmit designated data. Syntax CAN.write(val) CAN.write(buf, len) Parameters val:data to transmit (unsigned char variable) buf:data array to transmit (unsigned char array) len:size of array Returns Number of byte transmitted Examples See also - beginTransmission() - endTransmission() 函式庫參考主頁面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples […]
Description Initialize transmission state. Note: Usage for this function is similar to the beginTransmission() function for Wire. Immediately after calling this function, the write() and endTransmission() functions must be called to complete the transmission task. Syntax CAN.beginTransmission(id) CAN.beginTransmission(id, ext) Parameters id:External CAN device ID ext:Data transmission format. This parameter is not needed for the function […]
Description Initialize CANBus function library Syntax CAN.begin() CAN.begin(speed) Parameters speed:Data transmission speed for CAN bus. When not set, the default 10KBPS setting is used. CAN_10KBPS CAN_20KBPS CAN_50KBPS CAN_83K3BPS CAN_100KBPS CAN_125KBPS CAN_250KBPS CAN_500KBPS CAN_833KBPS CAN_1000KBPS Returns None Examples See also - beginTransmission() - write() - endTransmission() Libraries Reference Home The text of the 86Duino reference is […]
Sorry, this entry is only available in 繁體中文.