#pragma once #include #include "jvs/jvs-bus.h" struct j9100628a_ops { void (*reset)(void *ctx); void (*write_led)(void *ctx, uint32_t state); void (*poll_card)(void *ctx, char *serial); }; struct j9100628a { struct jvs_node jvs; uint8_t addr; const struct j9100628a_ops *ops; void *ops_ctx; }; void j9100628a_init( struct j9100628a *j9100628a, struct jvs_node *next, const struct j9100628a_ops *ops, void *ops_ctx); struct jvs_node *j9100628a_to_jvs_node(struct j9100628a *j9100628a);