mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
refactor lfops t55xx functions
share t55xx configuration register definitions with client for later use (warning - compiled but not fully tested yet)
This commit is contained in:
parent
88f475cf6b
commit
3606ac0a2b
7 changed files with 180 additions and 313 deletions
|
@ -282,6 +282,16 @@ int manrawdecode(uint8_t * BitStream, size_t *size, uint8_t invert)
|
|||
return bestErr;
|
||||
}
|
||||
|
||||
uint32_t manchesterEncode2Bytes(uint16_t datain) {
|
||||
uint32_t output = 0;
|
||||
uint8_t curBit = 0;
|
||||
for (uint8_t i=0; i<16; i++) {
|
||||
curBit = (datain >> (15-i) & 1);
|
||||
output |= (1<<(((15-i)*2)+curBit));
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
//by marshmellow
|
||||
//encode binary data into binary manchester
|
||||
int ManchesterEncode(uint8_t *BitStream, size_t size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue