1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2025-02-15 18:22:42 +01:00

29 lines
523 B
C
Raw Normal View History

2024-04-22 20:31:32 +08:00
/*
* AIME Protocol
* WHowe <github.com/whowechina>
*/
#ifndef AIME_H
#define AIME_H
#include <stdint.h>
#include <stdbool.h>
/* return true if accepts a byte, false if rejects */
typedef void (*aime_putc_func)(uint8_t byte);
void aime_init(aime_putc_func putc_func);
void aime_virtual_aic(bool enable);
void aime_set_mode(int mode);
const char *aime_get_mode_string();
bool aime_feed(int c);
/* if aime is currently active */
bool aime_is_active();
uint32_t aime_led_color();
#endif