1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Moved libftdi-specific code to PRHardware.cpp and added abstract PRHardware*() functions.

Added PRCommon.h.
This commit is contained in:
Adam Preble
2009-05-26 20:18:36 -04:00
parent 179125367b
commit 511d5d49c4
6 changed files with 184 additions and 110 deletions

View File

@@ -169,4 +169,10 @@ void ParseSwitchRuleIndex(uint16_t index, uint8_t *switchNum, PREventType *event
int16_t CreateSwitchRuleIndex(uint8_t switchNum, PREventType eventType);
int32_t CreateSwitchRuleAddr(uint8_t switchNum, PREventType eventType);
PRResult PRHardwareOpen();
void PRHardwareClose();
int PRHardwareRead(uint8_t *buffer, int maxBytes);
int PRHardwareWrite(uint8_t *buffer, int bytes);
#endif // _PROC_HARDWARE_H_