1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-12-03 17:07:16 +01:00
aic_pico/firmware/include/aime.h
2024-05-07 12:05:45 +08:00

32 lines
580 B
C

/*
* 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_sub_mode(int sub_mode);
const char *aime_get_mode_string();
bool aime_feed(int c);
/* if aime is currently active */
bool aime_is_active();
/* force fast expire */
void aime_fast_expire();
uint32_t aime_led_color();
#endif