1
0
mirror of https://github.com/KostyaSha/arduino-iebus.git synced 2026-08-29 00:39:26 +00:00

Move one variant, create other for sniffing

This commit is contained in:
Kanstantsin Shautsou
2017-06-20 02:51:35 +03:00
parent c4aee10f3d
commit 94d0e5d3fe
23 changed files with 1838 additions and 0 deletions
@@ -0,0 +1,41 @@
/*
AVCLanNavi.h - AVCLan Navi library for 'duino / Wiring
Created by Kochetkov Aleksey, 16.06.2010
Version 0.0.1
*/
#ifndef AVCLanNavi_h
#define AVCLanNavi_h
#include <avr/pgmspace.h>
#include "AVCLanDrv.h"
#include "WProgram.h"
#define AVCLANDEVICE_NAME " Navi"
#define AVCLANDEVICE_VERSION "0.0.1"
extern AvcOutMessage CmdReset; // reset AVCLan. This causes HU to send ACT_REGISTER
extern AvcOutMessage CmdRegister; // register CD changer
// extern AvcOutMessage *CmdTest; // test message
typedef enum{
ACT_REGISTER = 1,
ACT_INIT,
} AvcActionID;
typedef enum{
EV_STATUS = 1,
} AvcEventID;
class AVCLanNavi{
public:
void begin (); // initialisation, obligatory method
void getActionID(); // get action id by recieved message, obligatory method
void processAction(AvcActionID); // process action, obligatory method
void processEvent(AvcEventID); // process event, obligatory method
};
#endif
extern AVCLanNavi avclanDevice;