|
static struct co_gw_net * | co_gw_net_create (co_gw_t *gw, co_unsigned16_t id, co_nmt_t *nmt) |
| Creates a new CANopen network. More...
|
|
static void | co_gw_net_destroy (struct co_gw_net *net) |
| Destroys a CANopen network. More...
|
|
static void | co_gw_net_cs_ind (co_nmt_t *nmt, co_unsigned8_t cs, void *data) |
| The callback function invoked when an NMT command is received by a CANopen gateway. More...
|
|
static void | co_gw_net_ng_ind (co_nmt_t *nmt, co_unsigned8_t id, int state, int reason, void *data) |
| The callback function invoked when a node guarding event occurs for a node on a CANopen network. More...
|
|
static void | co_gw_net_lg_ind (co_nmt_t *nmt, int state, void *data) |
| The callback function invoked when a life guarding event occurs for a CANopen gateway. More...
|
|
static void | co_gw_net_hb_ind (co_nmt_t *nmt, co_unsigned8_t id, int state, int reason, void *data) |
| The callback function invoked when a heartbeat event occurs for a node on a CANopen network. More...
|
|
static void | co_gw_net_st_ind (co_nmt_t *nmt, co_unsigned8_t id, co_unsigned8_t st, void *data) |
| The callback function invoked when a boot-up event or state change is detected for a node on a CANopen network. More...
|
|
static void | co_gw_net_boot_ind (co_nmt_t *nmt, co_unsigned8_t id, co_unsigned8_t st, char es, void *data) |
| The callback function invoked when the 'boot slave' process completes for a node on a CANopen network. More...
|
|
static void | co_gw_net_dn_ind (co_nmt_t *nmt, co_unsigned8_t id, co_unsigned16_t idx, co_unsigned8_t subidx, size_t size, size_t nbyte, void *data) |
| The callback function invoked to notify the user of the progress of an SDO download request during the 'boot slave' process of a node on a CANopen network. More...
|
|
static void | co_gw_net_up_ind (co_nmt_t *nmt, co_unsigned8_t id, co_unsigned16_t idx, co_unsigned8_t subidx, size_t size, size_t nbyte, void *data) |
| The callback function invoked to notify the user of the progress of an SDO upload request during the 'boot slave' process of a node on a CANopen network. More...
|
|
static void | co_gw_net_sync_ind (co_sync_t *sync, co_unsigned8_t cnt, void *data) |
| The callback function invoked when a SYNC message is received from a node on a CANopen network.
|
|
static void | co_gw_net_time_ind (co_time_t *time, const struct timespec *tp, void *data) |
| The callback function invoked when a TIME message is received from a node on a CANopen network.
|
|
static void | co_gw_net_emcy_ind (co_emcy_t *emcy, co_unsigned8_t id, co_unsigned16_t ec, co_unsigned8_t er, co_unsigned8_t msef[5], void *data) |
| The callback function invoked when an EMCY message is received from a node on a CANopen network.
|
|
static void | co_gw_net_rpdo_ind (co_rpdo_t *pdo, co_unsigned32_t ac, const void *ptr, size_t n, void *data) |
| The callback function invoked when a PDO is received from a node on a CANopen network.
|
|
static struct co_gw_job * | co_gw_job_create (struct co_gw_job **pself, struct co_gw_net *net, void *data, void(*dtor)(void *data), const struct co_gw_req *req) |
| Creates a new CANopen gateway network job. More...
|
|
static void | co_gw_job_destroy (struct co_gw_job *job) |
| Destroys a CANopen gateway network job. More...
|
|
static void | co_gw_job_remove (struct co_gw_job *job) |
| Removes a CANopen gateway network job from its network.
|
|
static struct co_gw_job * | co_gw_job_create_sdo (struct co_gw_job **pself, struct co_gw_net *net, co_unsigned8_t id, const struct co_gw_req *req) |
| Creates a new SDO upload/download job.
|
|
static void | co_gw_job_sdo_dtor (void *data) |
| Destroys the Client-SDO service in an SDO upload/download job.
|
|
static void | co_gw_job_sdo_up_con (co_csdo_t *sdo, co_unsigned16_t idx, co_unsigned8_t subidx, co_unsigned32_t ac, const void *ptr, size_t n, void *data) |
| The confirmation function for an 'SDO upload' request.
|
|
static void | co_gw_job_sdo_dn_con (co_csdo_t *sdo, co_unsigned16_t idx, co_unsigned8_t subidx, co_unsigned32_t ac, void *data) |
| The confirmation function for an 'SDO download' request.
|
|
static void | co_gw_job_sdo_ind (const co_csdo_t *sdo, co_unsigned16_t idx, co_unsigned8_t subidx, size_t size, size_t nbyte, void *data) |
| The progress indication function for an SDO upload/download job.
|
|
static struct co_gw_job * | co_gw_job_create_lss (struct co_gw_job **pself, struct co_gw_net *net, const struct co_gw_req *req) |
| Creates a new LSS job.
|
|
static void | co_gw_job_lss_cs_ind (co_lss_t *lss, co_unsigned8_t cs, void *data) |
| The confirmation function for an 'LSS switch state selective', 'LSS identify remote slave' or 'LSS identify non-configured remote slaves' request.
|
|
static void | co_gw_job_lss_err_ind (co_lss_t *lss, co_unsigned8_t cs, co_unsigned8_t err, co_unsigned8_t spec, void *data) |
| The confirmation function for an 'LSS configure node-ID', 'LSS configure bit-rate' or 'LSS store configuration' request.
|
|
static void | co_gw_job_lss_lssid_ind (co_lss_t *lss, co_unsigned8_t cs, co_unsigned32_t id, void *data) |
| The confirmation function for an 'Inquire LSS address' request.
|
|
static void | co_gw_job_lss_nid_ind (co_lss_t *lss, co_unsigned8_t cs, co_unsigned8_t id, void *data) |
| The confirmation function for an 'LSS inquire node-ID' request.
|
|
static void | co_gw_job_lss_scan_ind (co_lss_t *lss, co_unsigned8_t cs, const struct co_id *id, void *data) |
| The confirmation function for an 'LSS Slowscan/Fastscan' request.
|
|
static int | co_gw_recv_sdo_up (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, const struct co_gw_req *req) |
| Processes an 'SDO upload' request.
|
|
static int | co_gw_recv_sdo_dn (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, const struct co_gw_req *req) |
| Processes an 'SDO download' request.
|
|
static int | co_gw_recv_set_sdo_timeout (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Configure SDO time-out' request.
|
|
static int | co_gw_recv_set_rpdo (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Configure RPDO' request. More...
|
|
static int | co_gw_recv_set_tpdo (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Configure TPDO' request.
|
|
static int | co_gw_recv_pdo_read (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Read PDO data' request.
|
|
static int | co_gw_recv_pdo_write (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Write PDO data' request.
|
|
static int | co_gw_recv_nmt_cs (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, co_unsigned8_t cs, const struct co_gw_req *req) |
| Processes an NMT request.
|
|
static int | co_gw_recv_nmt_set_ng (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, const struct co_gw_req *req) |
| Processes a 'Enable/Disable node guarding' request.
|
|
static int | co_gw_recv_nmt_set_hb (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, const struct co_gw_req *req) |
| Processes a 'Start/Disable heartbeat consumer' request.
|
|
static int | co_gw_recv_init (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'Initialize gateway' request.
|
|
static int | co_gw_recv_set_hb (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Set heartbeat producer' request.
|
|
static int | co_gw_recv_set_id (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Set node-ID' request.
|
|
static int | co_gw_recv_set_emcy (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, const struct co_gw_req *req) |
| Processes a 'Start/Stop emergency consumer' request.
|
|
static int | co_gw_recv_set_cmd_timeout (co_gw_t *gw, const struct co_gw_req *req) |
| Processes a 'Set command time-out' request.
|
|
static int | co_gw_recv_set_bootup_ind (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Boot-up forwarding' request.
|
|
static int | co_gw_recv_set_net (co_gw_t *gw, const struct co_gw_req *req) |
| Processes a 'Set default network' request.
|
|
static int | co_gw_recv_set_node (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Set default node-ID' request.
|
|
static int | co_gw_recv_get_version (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes a 'Get version' request.
|
|
static int | co_gw_recv_lss_switch (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS switch state global' request.
|
|
static int | co_gw_recv_lss_switch_sel (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS switch state selective' request.
|
|
static int | co_gw_recv_lss_set_id (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS configure node-ID' request.
|
|
static int | co_gw_recv_lss_set_rate (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS configure bit-rate' request.
|
|
static int | co_gw_recv_lss_switch_rate (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS activate new bit-rate' request.
|
|
static int | co_gw_recv_lss_store (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS store configuration' request.
|
|
static int | co_gw_recv_lss_get_lssid (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'Inquire LSS address' request.
|
|
static int | co_gw_recv_lss_get_id (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS inquire node-ID' request.
|
|
static int | co_gw_recv_lss_id_slave (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS identify remote slave' request.
|
|
static int | co_gw_recv_lss_id_non_cfg_slave (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS identify non-configured remote slaves' request.
|
|
static int | co_gw_recv__lss_slowscan (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS Slowscan' request.
|
|
static int | co_gw_recv__lss_fastscan (co_gw_t *gw, co_unsigned16_t net, const struct co_gw_req *req) |
| Processes an 'LSS Fastscan' request.
|
|
static int | co_gw_send_con (co_gw_t *gw, const struct co_gw_req *req, int iec, co_unsigned32_t ac) |
| Sends a confirmation with an internal error code or SDO abort code.
|
|
static int | co_gw_send_ec (co_gw_t *gw, co_unsigned16_t net, co_unsigned8_t node, co_unsigned8_t st, int iec) |
| Sends an 'Error control event received' indication.
|
|
static int | co_gw_send_srv (co_gw_t *gw, const struct co_gw_srv *srv) |
| Invokes the callback function to send a confirmation or indication.
|
|
static int | errnum2iec (errnum_t errnum) |
| Converts an error number to an internal error code.
|
|
const char * | co_gw_iec2str (int iec) |
| Returns a string describing an internal error code.
|
|
co_gw_t * | co_gw_create (void) |
| Creates a new CANopen gateway. More...
|
|
void | co_gw_destroy (co_gw_t *gw) |
| Destroys a CANopen gateway. More...
|
|
int | co_gw_init_net (co_gw_t *gw, co_unsigned16_t id, co_nmt_t *nmt) |
| Registers a CANopen network with a gateway. More...
|
|
int | co_gw_fini_net (co_gw_t *gw, co_unsigned16_t id) |
| Unregisters a CANopen network with a gateway. More...
|
|
int | co_gw_recv (co_gw_t *gw, const struct co_gw_req *req) |
| Receives and processes a request with a CANopen gateway. More...
|
|
void | co_gw_get_send_func (const co_gw_t *gw, co_gw_send_func_t **pfunc, void **pdata) |
| Retrieves the callback function used to send indications and confirmations from a CANopen gateway. More...
|
|
void | co_gw_set_send_func (co_gw_t *gw, co_gw_send_func_t *func, void *data) |
| Sets the callback function used to send indications and confirmations from a CANopen gateway. More...
|
|
void | co_gw_get_rate_func (const co_gw_t *gw, co_gw_rate_func_t **pfunc, void **pdata) |
| Retrieves the callback function invoked when a baudrate switch is needed after an 'Initialize gateway' command is received. More...
|
|
void | co_gw_set_rate_func (co_gw_t *gw, co_gw_rate_func_t *func, void *data) |
| Sets the callback function invoked when a baudrate switch is needed after an 'Initialize gateway' command is received. More...
|
|