#
# SelectFile(fileId)
#
[all/CTCard/select_file_w]
arguments=1
apdu="apdu1"

[all/CTCard/select_file_w/apdu1]
cla="0"
ins="0xa4"
p1=0
p2="0xc"
data="$data"
lr=0

[all/CTCard/select_file_w/data]
argument=0
type="uword"


#
# ReadBinary (offset, size)
#
[all/CTCard/read_binary] 
arguments=2 
apdu="apdu1" 

[all/CTCard/read_binary/apdu1]
cla="0"
ins="0xb0"
p12="$offset"
lr="$size"

[all/CTCard/read_binary/offset]
argument=0
type="uword"
#min=
#max=
#filler=

[all/CTCard/read_binary/size]
argument=1
type="uchar"
min=1
max=256
#filler=



#
# UpdateBinary (offset, data)
#
[all/CTCard/update_binary] 
arguments=2 
apdu="apdu1" 

[all/CTCard/update_binary/apdu1]
cla="0"
ins="0xd6"
p12="$offset"
data="$data"
lr=0

[all/CTCard/update_binary/offset]
argument=0
type="uword"
#min=
#max=
#filler=

[all/CTCard/update_binary/data]
argument=1
type="bin"
min=1
max=255
#filler=





