diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-15 20:56:57 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-15 20:56:57 +0000 |
commit | 7c198cbff3872795661b6ded45662dc0a9ba6db9 (patch) | |
tree | e68615430e837cf6173db35e9d8cc6c29706fe3f /openpicc/application/iso14443_layer3a.c | |
parent | ca286b29ede8dece0661514dae381e05efe1badc (diff) |
Record size of SSC RX DMA buffers in transfers, much clearer
Change miller decoder to take an RX DMA buffer in order to have access to the reception_mode member, much more versatile
git-svn-id: https://svn.openpcd.org:2342/trunk@393 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/iso14443_layer3a.c')
-rw-r--r-- | openpicc/application/iso14443_layer3a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpicc/application/iso14443_layer3a.c b/openpicc/application/iso14443_layer3a.c index cbff46f..57a3a99 100644 --- a/openpicc/application/iso14443_layer3a.c +++ b/openpicc/application/iso14443_layer3a.c @@ -307,11 +307,11 @@ void iso14443_layer3a_state_machine (void *pvParameters) vLedBlinkGreen(); if(1) { int i = usb_print_set_default_flush(0); - DumpBufferToUSB((char*)buffer->data, (buffer->len+7)/8); + DumpBufferToUSB((char*)buffer->data, (buffer->len_transfers * buffer->reception_mode->transfersize_pdc)/8); DumpStringToUSB(" Decoded: "); - DumpUIntToUSB(buffer->len); + DumpUIntToUSB(buffer->len_transfers); DumpStringToUSB(" "); - iso14443a_decode_miller(&received_frame, buffer->data, (buffer->len+7)/8); + iso14443a_decode_miller(&received_frame, buffer); DumpBufferToUSB((char*)received_frame.data, received_frame.numbytes + (received_frame.numbits+7)/8); DumpStringToUSB(" "); DumpUIntToUSB(received_frame.parameters.a.last_bit); |