23#include <joybus/target.h>
28#define JOYBUS_TARGET_PIXELFX_GAMEID(target) ((struct joybus_target_pixelfx_gameid *)(target))
31#define JOYBUS_PIXELFX_GAMEID_SIZE 10
void(* joybus_target_pixelfx_gameid_received_cb)(struct joybus_target_pixelfx_gameid *target)
Callback type for game ID received events.
Definition pixelfx_gameid.h:41
void joybus_target_pixelfx_gameid_set_received_cb(struct joybus_target_pixelfx_gameid *target, joybus_target_pixelfx_gameid_received_cb callback)
Set the game ID received callback for the target.
Definition pixelfx_gameid.c:44
#define JOYBUS_PIXELFX_GAMEID_SIZE
Size of a PixelFX game ID, in bytes.
Definition pixelfx_gameid.h:31
void joybus_target_pixelfx_gameid_init(struct joybus_target_pixelfx_gameid *target)
Initialize a PixelFX game ID target.
Definition pixelfx_gameid.c:35
PixelFX game ID Joybus target.
Definition pixelfx_gameid.h:46
uint8_t game_id[JOYBUS_PIXELFX_GAMEID_SIZE]
The last game ID received, all zeros until one arrives.
Definition pixelfx_gameid.h:51
struct joybus_target base
Base target interface.
Definition pixelfx_gameid.h:48
joybus_target_pixelfx_gameid_received_cb on_received
Callback for game ID received events.
Definition pixelfx_gameid.h:54
Interface for a Joybus target, a device on the Joybus which responds to commands from a host.
Definition target.h:92