1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-12-01 08:27:16 +01:00
aic_pico/firmware/include/bana.h

29 lines
479 B
C
Raw Normal View History

/*
* Bandai Namco Protocol
* WHowe <github.com/whowechina>
*/
#ifndef BANA_H
#define BANA_H
#include <stdint.h>
#include <stdbool.h>
/* return true if accepts a byte, false if rejects */
typedef void (*bana_putc_func)(uint8_t byte);
void bana_init(bana_putc_func putc_func);
bool bana_feed(int c);
2024-04-22 14:31:32 +02:00
/* if bana is currently active */
bool bana_is_active();
/* force fast expire */
void bana_fast_expire();
uint32_t bana_led_color();
2024-04-22 14:31:32 +02:00
#endif