#include "ppg_signals.h"
#include <stddef.h>
#include <stdbool.h>
Go to the source code of this file.
Value:
.func = NULL, \
.user_data = NULL \
} \
}
Action information.
Definition: ppg_action.h:55
The PPG_Action_Callback struct groups use callback information in an object oriented fashion (functor...
Definition: ppg_action.h:37
Use this macro to specify an action that does nothing.
#define PPG_ACTION_USER_CALLBACK |
( |
|
FUNC, |
|
|
|
USER_DATA |
|
) |
| |
Value:
.user_data = USER_DATA \
} \
}
Action information.
Definition: ppg_action.h:55
The PPG_Action_Callback struct groups use callback information in an object oriented fashion (functor...
Definition: ppg_action.h:37
void(* PPG_Action_Callback_Fun)(bool activation, void *user_data)
Function type of user callback functions.
Definition: ppg_action.h:32
Use this macro to simplify specification of action callbacks.
- Parameters
-
FUNC | The callback function pointer |
USER_DATA | A pointer to user data or NULL if none is required |
typedef void(* PPG_Action_Callback_Fun)(bool activation, void *user_data) |
Function type of user callback functions.
- Parameters
-
activation | If true, the callback signals the activation (match) of a token, and deactivation otherwise |
user_data | Optional user data. |
This function initializes an action callback.
- Parameters
-
cb | A pointer to the callback struct |