[EthercatDevice_XXX]
描述
(CoE) 取得從站的 Object 列表。
格式
int getODlist(uint16_t *list, uint32_t list_size, uint32_t *abortcode = NULL, uint32_t timeout_us = ECAT_DEFAULT_COE_TIMEOUT_US);
語法
EthercatDevice_XXX slave;
slave.getODlist();
參數
uint16_t *list
:物件列表的指標。uint32_t list_size
:物件列表的指標大小。uint32_t *abortcode
:SDO 錯誤程式碼的指標。uint32_t timeout_us
:超時,單位為一微秒。
回傳
Int: >=0 for number of object in object list; if the return value is smaller than 0 means error.
函式庫參考主頁面
86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。