mirror of
https://github.com/KostyaSha/arduino-iebus.git
synced 2025-06-20 22:06:09 +00:00
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
/*
|
|
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 "Arduino.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;
|