libjoybus
Joybus implementation for 32-bit MCUs
Loading...
Searching...
No Matches
common.h
1
7
8#pragma once
9
10#include <joybus/bus.h>
11#include <joybus/identify.h>
12
20int joybus_identify(struct joybus *bus, struct joybus_id *response);
21
34int joybus_identify_async(struct joybus *bus, struct joybus_id *response, joybus_transfer_cb callback,
35 void *user_data);
36
44int joybus_reset(struct joybus *bus, struct joybus_id *response);
45
55int joybus_reset_async(struct joybus *bus, struct joybus_id *response, joybus_transfer_cb callback, void *user_data);
56
int joybus_reset(struct joybus *bus, struct joybus_id *response)
Reset the target device attached to the Joybus.
Definition common.c:19
int joybus_identify(struct joybus *bus, struct joybus_id *response)
Identify the target device attached to the Joybus.
Definition common.c:4
int joybus_identify_async(struct joybus *bus, struct joybus_id *response, joybus_transfer_cb callback, void *user_data)
Identify the target device attached to the Joybus, asynchronously.
Definition common.c:10
int joybus_reset_async(struct joybus *bus, struct joybus_id *response, joybus_transfer_cb callback, void *user_data)
Reset the target device attached to the Joybus, asynchronously.
Definition common.c:25
void(* joybus_transfer_cb)(struct joybus *bus, int status, void *user_data)
Function type for transfer completion callbacks.
Definition bus.h:74
Joybus device identification values and utilities.
Represents the 3-byte ID field from an "identify" buffer.
Definition identify.h:98
A Joybus instance.
Definition bus.h:96