diff options
| author | info@mode42.com <info@mode42.com> | 2026-08-08 03:54:55 +0000 |
|---|---|---|
| committer | info@mode42.com <info@mode42.com> | 2026-08-08 03:54:55 +0000 |
| commit | 20cb29c2f8c5c87bc590896854a20b1473ceb358 (patch) | |
| tree | 2857f41513a56ad41af97b57362639298aa7f033 /src/clients/client_display.h | |
#2
Diffstat (limited to 'src/clients/client_display.h')
| -rw-r--r-- | src/clients/client_display.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/clients/client_display.h b/src/clients/client_display.h new file mode 100644 index 0000000..a457f4c --- /dev/null +++ b/src/clients/client_display.h @@ -0,0 +1,30 @@ +#ifndef HYBBX_CLIENT_DISPLAY_H +#define HYBBX_CLIENT_DISPLAY_H + +#include "hybbx/traffic.h" + +#include <stddef.h> +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct hybbx_client_display { + const hybbx_traffic_config_t *traffic; + unsigned col; +} hybbx_client_display_t; + +void hybbx_client_display_init(hybbx_client_display_t *disp, + const hybbx_traffic_config_t *traffic); + +void hybbx_client_display_byte(hybbx_client_display_t *disp, uint8_t byte); + +void hybbx_client_display_write(hybbx_client_display_t *disp, + const uint8_t *data, size_t len); + +#ifdef __cplusplus +} +#endif + +#endif /* HYBBX_CLIENT_DISPLAY_H */ |
