t0: fix wtime calculation, for real this time

ETU calculation is 1 etu = fi/di * 1/f as per chapter 7.1.

wtime/WWT is usually mentioned as being 9600 etu in iso 7816-3 - but
it's actually specified for t=0 as WT=WI*960*Fi/f in chapter 10.2 - no
di involved here, so the rightmost fraction is not ETU!

-> as soon as di is not 1 after a pps exchange the timeout value was off
by a factor of di if it was just used as a multiplier for ETU.

Change-Id: Icd4fa83e1177873e90200529331d3a1fce8be1c6
1 file changed
tree: f50f8504e608e737f82d390983998fa17206538c
  1. ccid_common/
  2. ccid_host/
  3. contrib/
  4. sysmoOCTSIM/
  5. tests/
  6. .gitignore
  7. git-version-gen
  8. README.md
README.md

osmo-ccid-firmware - CCID implementation (not just) for firmware

This repository contains a C-language implementation of the USB CCID (Smart Card Reader) device class. The code is written in a portable fashin and can be found in the ccid_common sub-directory.

The code can be built to run as an userspace program on Linux, implementing a USB Gadget using the FunctionFS interface. For this version, see the ccid_host subdirectory.

The CCID code can also be built into a firmware for the sysmoOCTSIM 8-slot high-performance USB smart card reader.

Mailing List

Discussions related to osmo-ccid-firmware are happening on the slightly unrelated simtrace@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/simtrace for subscription options and the list archive.

Please observe the Osmocom Mailing List Rules when posting.

Contributing

Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards

We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details

The current patch queue for osmo-ccid-firmware can be seen at https://gerrit.osmocom.org/#/q/project:osmo-ccid-firmware+status:open