int decodeS72xx(unsigned char* data, int len) {
unsigned char c = 0xaa;
unsigned char p0=0;
unsigned char p1=0;
for(int i=0; i<len; i++) {
unsigned char x = data[i];
if(i%2) {
data[i]^=(p0^c);
p0 = x;
} else {
data[i]^=(p1^c);
p1 = x;
}
}
return 0;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
harryzz/simatic-s7-2xx
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published