-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathreader.go
More file actions
22 lines (19 loc) · 759 Bytes
/
Copy pathreader.go
File metadata and controls
22 lines (19 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
package to handle the communication of smartcard devices under the PCSC implementation
projects on which it is based:
https://github.com/LudovicRousseau/PCSC
https://github.com/ebfe/scard
*/
package smartcard
// IReader Interface to Reader device
type IReader interface {
//ConnectCard connect card with protocol T=1
ConnectCard() (ICard, error)
//ConnectCard connect card with protocol T=1.
//Some readers distinguish between the flow to connect a contact-based smart card and a contactless smart card.
ConnectSamCard() (ICard, error)
//ConnectSamCard_T0 ConnectCard connect card with protocol T=1.
ConnectSamCard_T0() (ICard, error)
//ConnectSamCard_Tany ConnectCard connect card with protocol T=any.
ConnectSamCard_Tany() (ICard, error)
}