bosko lekovic
/
MiWi_spi
prva verzija, poslednji bajt je sporan
MiWiApp.h
- Committer:
- bosko001
- Date:
- 2020-07-28
- Revision:
- 3:3b0754ed31e9
- Parent:
- 0:c06c791ca345
File content as of revision 3:3b0754ed31e9:
#ifndef MIWIAPP_H #define MIWIAPP_H struct S_GCONFIG { char RPS: 1; char VCOT: 2; char FBS: 2; char CMOD: 3; }; union U_GCONFIG { struct S_GCONFIG s_gc; char bajt; }; void inic_MiWi( void ); char get_mode( void ); void print_regs( void ); void set_mode( char mode ); void txMiWi( char *niz ); char readMiWiReg( char reg ); void writeMiWiReg( char reg, char data ); void writeMiWiData( char data ); char readMiWiData( void ); bool lockPllMiWi( ); void resetMiWi( void ); #endif