Go to the source code of this file.
◆ KDRIVE_EVENT_CLOSED
#define KDRIVE_EVENT_CLOSED (0x0004) |
◆ KDRIVE_EVENT_CLOSING
#define KDRIVE_EVENT_CLOSING (0x0003) |
◆ KDRIVE_EVENT_ERROR
#define KDRIVE_EVENT_ERROR (0x0000) |
◆ KDRIVE_EVENT_INTERNAL_01
#define KDRIVE_EVENT_INTERNAL_01 (0x000C) /*! Reserved for internal use */ |
◆ KDRIVE_EVENT_KNX_BUS_CONNECTED
#define KDRIVE_EVENT_KNX_BUS_CONNECTED (0x0006) |
◆ KDRIVE_EVENT_KNX_BUS_DISCONNECTED
#define KDRIVE_EVENT_KNX_BUS_DISCONNECTED (0x0007) |
◆ KDRIVE_EVENT_LOCAL_DEVICE_RESET
#define KDRIVE_EVENT_LOCAL_DEVICE_RESET (0x0008) |
◆ KDRIVE_EVENT_OPENED
#define KDRIVE_EVENT_OPENED (0x0002) |
◆ KDRIVE_EVENT_OPENING
#define KDRIVE_EVENT_OPENING (0x0001) |
◆ KDRIVE_EVENT_TELEGRAM_CONFIRM
#define KDRIVE_EVENT_TELEGRAM_CONFIRM (0x000A) /*! A L_Data_Confirm indication was received after sending a telegram */ |
◆ KDRIVE_EVENT_TELEGRAM_CONFIRM_TIMEOUT
#define KDRIVE_EVENT_TELEGRAM_CONFIRM_TIMEOUT (0x000B) /*! A L_Data_Confirm indication was not received after sending a telegram */ |
◆ KDRIVE_EVENT_TELEGRAM_INDICATION
#define KDRIVE_EVENT_TELEGRAM_INDICATION (0x0009) /*! A telegram was received from the bus */ |
◆ KDRIVE_EVENT_TERMINATED
#define KDRIVE_EVENT_TERMINATED (0x0005) |
◆ kdrive_event_callback
typedef void(* kdrive_event_callback) (int32_t ap, uint32_t e, void *user_data) |
Event Callback function type (pointer to function definition)
- See also
- kdrive_set_event_callback
- Parameters
-
[in] | ap | the access port descriptor |
[in] | e | holds the event |
[in] | user_data | pointer to user data or NULL |
◆ kdrive_set_event_callback()
Sets the event callback, for a specific access port.
This callback function will be called when an event occurred by the Access Port. A notification thread is used internally so this callback will be in the context of the notification thread (and not the main thread). That is, care should be taken when calling out from the callback. There can only be one callback per access port. To remove the callback add an empty callback (0).
- Parameters
-
[in] | ap | the access port descriptor |
[in] | c | the event callback pointer to function |
[in] | user_data | (optional) pointer to user data |
- Examples
- kdrive_express_ip_tunneling.c, kdrive_express_tunnel_ind_addr.c, and kdrive_express_usb.c.