PoKeys: dodanie wsparcia dla rozszerzeń PoExt

This commit is contained in:
firleju
2016-03-31 19:32:54 +02:00
parent e2672725f3
commit 0aa7a67531
4 changed files with 70 additions and 21 deletions

View File

@@ -16,7 +16,8 @@ class TPoKeys55
unsigned char OutputBuffer[65]; // Allocate a memory buffer equal to our endpoint size + 1
unsigned char InputBuffer[65]; // Allocate a memory buffer equal to our endpoint size + 1
int iPWM[8]; // 0-5:wyjœcia PWM,6:analogowe,7:czêstotliwoœc PWM
int iPWMbits;
char PoExt[10];// Wyjscia PoExt
int iPWMbits;
int iLastCommand;
int iFaza;
int iRepeats; // liczba powtórzeñ
@@ -29,11 +30,13 @@ class TPoKeys55
bool Connect();
bool Close();
bool Write(unsigned char c, unsigned char b3, unsigned char b4 = 0, unsigned char b5 = 0);
bool Read();
bool PoExtWrite(unsigned char *c);
bool Read();
bool ReadLoop(int i);
AnsiString Version();
bool PWM(int x, float y);
bool Update(bool pause);
bool PoExtUpdate(int x, char y);
bool Update(bool pause);
};
//---------------------------------------------------------------------------
#endif