2024-04-21 16:03:32 +08:00
|
|
|
/*
|
|
|
|
* 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 20:31:32 +08:00
|
|
|
/* if bana is currently active */
|
|
|
|
bool bana_is_active();
|
2024-04-21 16:03:32 +08:00
|
|
|
|
2024-06-22 09:37:00 +08:00
|
|
|
void bana_dtr_off();
|
2024-05-06 21:50:35 +08:00
|
|
|
|
2024-05-10 10:05:24 +08:00
|
|
|
const char *bana_get_led_pattern();
|
2024-04-22 20:31:32 +08:00
|
|
|
|
2024-04-21 16:03:32 +08:00
|
|
|
#endif
|