prva verzija, poslednji bajt je sporan

Committer:
bosko001
Date:
Tue Jul 28 17:17:51 2020 +0200
Revision:
3:3b0754ed31e9
Parent:
0:c06c791ca345
funkcionalan

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bosko001 0:c06c791ca345 1 #ifndef MIWIAPP_H
bosko001 0:c06c791ca345 2 #define MIWIAPP_H
bosko001 0:c06c791ca345 3
bosko001 0:c06c791ca345 4 struct S_GCONFIG
bosko001 0:c06c791ca345 5 {
bosko001 0:c06c791ca345 6 char RPS: 1;
bosko001 0:c06c791ca345 7 char VCOT: 2;
bosko001 0:c06c791ca345 8 char FBS: 2;
bosko001 0:c06c791ca345 9 char CMOD: 3;
bosko001 0:c06c791ca345 10 };
bosko001 0:c06c791ca345 11 union U_GCONFIG
bosko001 0:c06c791ca345 12 {
bosko001 0:c06c791ca345 13 struct S_GCONFIG s_gc;
bosko001 0:c06c791ca345 14 char bajt;
bosko001 0:c06c791ca345 15 };
bosko001 0:c06c791ca345 16
bosko001 0:c06c791ca345 17
bosko001 0:c06c791ca345 18
bosko001 0:c06c791ca345 19
bosko001 0:c06c791ca345 20 void inic_MiWi( void );
bosko001 0:c06c791ca345 21 char get_mode( void );
bosko001 0:c06c791ca345 22 void print_regs( void );
bosko001 0:c06c791ca345 23 void set_mode( char mode );
bosko001 0:c06c791ca345 24 void txMiWi( char *niz );
bosko001 0:c06c791ca345 25 char readMiWiReg( char reg );
bosko001 0:c06c791ca345 26 void writeMiWiReg( char reg, char data );
bosko001 0:c06c791ca345 27 void writeMiWiData( char data );
bosko001 0:c06c791ca345 28 char readMiWiData( void );
bosko001 0:c06c791ca345 29 bool lockPllMiWi( );
bosko001 0:c06c791ca345 30 void resetMiWi( void );
bosko001 0:c06c791ca345 31
bosko001 0:c06c791ca345 32
bosko001 0:c06c791ca345 33
bosko001 0:c06c791ca345 34 #endif