mirror of
https://github.com/grymoire/i2c_puppet-Linux.git
synced 2024-12-26 13:38:21 +01:00
16 lines
282 B
C
16 lines
282 B
C
|
#pragma once
|
||
|
|
||
|
#include "keyboard.h"
|
||
|
|
||
|
struct fifo_item
|
||
|
{
|
||
|
char key;
|
||
|
enum key_state state;
|
||
|
};
|
||
|
|
||
|
uint8_t fifo_count(void);
|
||
|
void fifo_flush(void);
|
||
|
bool fifo_enqueue(const struct fifo_item item);
|
||
|
void fifo_enqueue_force(const struct fifo_item item);
|
||
|
struct fifo_item fifo_dequeue(void);
|