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);
|
2024-05-07 12:05:45 +08:00
|
|
|
void aime_sub_mode(int sub_mode);
|
2024-04-22 20:31:32 +08:00
|
|
|
const char *aime_get_mode_string();
|
|
|
|
|
|
|
|
bool aime_feed(int c);
|
|
|
|
|
|
|
|
/* if aime is currently active */
|
|
|
|
bool aime_is_active();
|
|
|
|
|
2024-06-22 09:37:00 +08:00
|
|
|
void aime_dtr_off();
|
2024-05-06 21:50:35 +08:00
|
|
|
|
2024-04-22 20:31:32 +08:00
|
|
|
uint32_t aime_led_color();
|
|
|
|
|
|
|
|
#endif
|