39 lines
979 B
C
39 lines
979 B
C
/**
|
|
* @file include/di/can/rpc/callbacks.h
|
|
* @brief DI-Net CAN RPC message callbacks
|
|
* @date Jan 12, 2017
|
|
* @author jjacobs
|
|
* @copyright 2016 Dual Inventive Technology Centre B.V.
|
|
*
|
|
* CAN network discovery
|
|
*/
|
|
#ifndef LIBDI_INCLUDE_DI_CAN_RPC_CALLBACKS_H_
|
|
#define LIBDI_INCLUDE_DI_CAN_RPC_CALLBACKS_H_
|
|
|
|
#include <di/can/callback.h>
|
|
|
|
struct di_can_msg;
|
|
struct di_can_ctx;
|
|
|
|
/** Callback item for net discover request message */
|
|
#define DI_CAN_RPC_CALLBACK_DEVICE_ERRORS_REQUEST_ITEM { \
|
|
DI_CAN_CALLBACK_CANID( \
|
|
DI_CAN_MSGTYPE_RPC, \
|
|
DI_CAN_TRANSFERTYPE_REQUEST, \
|
|
DI_RPC_TYPE_DEVICE_ERRORS \
|
|
), \
|
|
di_can_rpc_callback_device_errors_request \
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void di_can_rpc_callback_device_errors_request(const struct di_can_msg *msg, struct di_can_ctx *ctx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* LIBDI_INCLUDE_DI_CAN_RPC_CALLBACKS_H_ */
|