Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers iso7816_defs.h Source File

iso7816_defs.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2013-2018, ARM Limited, All Rights Reserved
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00006  * not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 /**
00018  * \file iso7816_defs.h
00019  * \copyright Copyright (c) ARM Ltd 2013
00020  * \author Donatien Garnier
00021  */
00022 
00023 #ifndef ISO7816_DEFS_H_
00024 #define ISO7816_DEFS_H_
00025 
00026 #define ISO7816_INS_SELECT          0xA4
00027 #define ISO7816_INS_READ_BINARY     0xB0
00028 #define ISO7816_INS_UPDATE_BINARY   0xD6
00029 #define ISO7816_INS_ENVELOPE        0xC2
00030 
00031 
00032 #define ISO7816_SW_OK               0x9000
00033 #define ISO7816_SW_INVALID_CLASS    0x6E00
00034 #define ISO7816_SW_INVALID_INS      0x6D00
00035 #define ISO7816_SW_NOT_FOUND        0x6A82
00036 #define ISO7816_SW_WRONG_LENGTH     0x6700
00037 
00038 #define ISO7816_PUT_SW(buf, sw) do{ *(buf)=(sw>>8) & 0xFF; *(buf+1)=(sw>>0) & 0xFF; } while(0);
00039 
00040 
00041 
00042 #endif /* ISO7816_DEFS_H_ */