20 lines
346 B
C++
20 lines
346 B
C++
#ifndef KART_REC_HPP
|
|
#define KART_REC_HPP
|
|
|
|
#include "kartMessage.hpp"
|
|
|
|
class kartReceiver {
|
|
public:
|
|
void init();
|
|
bool begin();
|
|
void end();
|
|
bool isBegin();
|
|
void registerCallback(void (*onReceiveCallback)(kart_msg* message));
|
|
|
|
private:
|
|
bool run_status;
|
|
};
|
|
|
|
extern kartReceiver kart_receiver;
|
|
|
|
#endif |