mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
the reset/ATR handling has been heavily updated/fixed. instead of using the timer counter peripheral to handle the waiting time and corresponding timeout, the USART peripheral internal timeout mechanism is used. this is particularly important for the SIMtrace board since the clock signal is not connected to the timer counter. thus this change adds card emulation support for SIMtrace boards. Fi and Di have been properly rename to F and D since the "i" stands only for an "indicated" value, not the actual value. this does not change the USB protocol (the variable have just been renamed). additional variables store more information about the card capabilities NOTE: it has only be tested for the SIMtrace board Change-Id: Ibcb2c8cace9137695adf5fb3de43566f7cfb93b5
10 lines
267 B
C
10 lines
267 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
void tc_etu_set_wtime(uint8_t chan_nr, uint16_t wtime);
|
|
void tc_etu_set_etu(uint8_t chan_nr, uint16_t etu);
|
|
void tc_etu_init(uint8_t chan_nr, void *handle);
|
|
void tc_etu_enable(uint8_t chan_nr);
|
|
void tc_etu_disable(uint8_t chan_nr);
|
|
|