K22 processor

Committer:
bosko001
Date:
Sun Mar 21 18:20:15 2021 +0100
Revision:
7:4aa3dac73b66
Child:
15:3429cdc6e5f4
novi pocetak

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bosko001 7:4aa3dac73b66 1 #ifndef IOSPIPROTOKOL_H
bosko001 7:4aa3dac73b66 2 #define IOSPIPROTOKOL_H
bosko001 7:4aa3dac73b66 3
bosko001 7:4aa3dac73b66 4 //#include "IOspitelegram.h"
bosko001 7:4aa3dac73b66 5 #include "IOspiConnect.h"
bosko001 7:4aa3dac73b66 6 #include "IOdata.h"
bosko001 7:4aa3dac73b66 7 #include "ledControl.h"
bosko001 7:4aa3dac73b66 8
bosko001 7:4aa3dac73b66 9 class C_spiProtokol: public C_spiConnect
bosko001 7:4aa3dac73b66 10 {
bosko001 7:4aa3dac73b66 11 C_data *pc_data;
bosko001 7:4aa3dac73b66 12 C_ledControl *pc_ledControl;
bosko001 7:4aa3dac73b66 13 public:
bosko001 7:4aa3dac73b66 14
bosko001 7:4aa3dac73b66 15 C_spiProtokol( C_data *pc_data, C_ledControl *pc_ledControl): C_spiConnect()//(/*PTD6, PTD7, PTD5*/)
bosko001 7:4aa3dac73b66 16 {
bosko001 7:4aa3dac73b66 17 this->pc_data = pc_data;
bosko001 7:4aa3dac73b66 18 this->pc_ledControl = pc_ledControl;
bosko001 7:4aa3dac73b66 19 set_myAddress( pc_data->get_address());
bosko001 7:4aa3dac73b66 20 set_reset(true);
bosko001 7:4aa3dac73b66 21 };
bosko001 7:4aa3dac73b66 22
bosko001 7:4aa3dac73b66 23 void do_writeCommand( const char command, const char data) override;
bosko001 7:4aa3dac73b66 24 char do_readCommand( const char command, const char data) override;
bosko001 7:4aa3dac73b66 25 void do_readGroupCommand( const char command);
bosko001 7:4aa3dac73b66 26 void inic_address( void ) { set_myAddress(pc_data->get_address()); }
bosko001 7:4aa3dac73b66 27 };
bosko001 7:4aa3dac73b66 28
bosko001 7:4aa3dac73b66 29
bosko001 7:4aa3dac73b66 30
bosko001 7:4aa3dac73b66 31
bosko001 7:4aa3dac73b66 32 #endif