proxmark3/common/usart.h

16 lines
340 B
C
Raw Normal View History

#ifndef __USART_H
#define __USART_H
#include <stddef.h>
#include "proxmark3.h"
void usart_init(void);
void usart_close(void);
int16_t usart_readbuffer(uint8_t *data);
int16_t usart_writebuffer(uint8_t *data, size_t len);
bool usart_dataavailable(void);
int16_t usart_readcommand(uint8_t *data);
bool usart_commandavailable(void);
#endif