mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 02:18:35 -07:00
add is_connected api for expansion \w @Willy-JL
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
*/
|
||||
typedef struct ExpansionWorker ExpansionWorker;
|
||||
|
||||
typedef enum {
|
||||
ExpansionWorkerCallbackReasonExit,
|
||||
ExpansionWorkerCallbackReasonConnected,
|
||||
} ExpansionWorkerCallbackReason;
|
||||
|
||||
/**
|
||||
* @brief Worker callback type.
|
||||
*
|
||||
@@ -24,7 +29,7 @@ typedef struct ExpansionWorker ExpansionWorker;
|
||||
*
|
||||
* @param[in,out] context pointer to a user-defined object.
|
||||
*/
|
||||
typedef void (*ExpansionWorkerCallback)(void* context);
|
||||
typedef void (*ExpansionWorkerCallback)(void* context, ExpansionWorkerCallbackReason reason);
|
||||
|
||||
/**
|
||||
* @brief Create an expansion worker instance.
|
||||
|
||||
Reference in New Issue
Block a user