tmr_tag_auth.h
Go to the documentation of this file.
00001 /* ex: set tabstop=2 shiftwidth=2 expandtab cindent: */
00002 #ifndef _TMR_TAG_AUTH_H
00003 #define _TMR_TAG_AUTH_H
00004 
00011 /*
00012  * Copyright (c) 2009 ThingMagic, Inc.
00013  *
00014  * Permission is hereby granted, free of charge, to any person obtaining a copy
00015  * of this software and associated documentation files (the "Software"), to deal
00016  * in the Software without restriction, including without limitation the rights
00017  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00018  * copies of the Software, and to permit persons to whom the Software is
00019  * furnished to do so, subject to the following conditions:
00020  *
00021  * The above copyright notice and this permission notice shall be included in
00022  * all copies or substantial portions of the Software.
00023  * 
00024  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00025  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00026  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00027  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00028  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00029  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00030  * THE SOFTWARE.
00031  */
00032 #ifdef  __cplusplus
00033 extern "C" {
00034 #endif
00035 
00036 #include "tmr_gen2.h"
00037 
00038 /* 
00039  * RFID Authentication structures
00040  */
00041 typedef enum TMR_AuthType
00042 {
00043   TMR_AUTH_TYPE_GEN2_PASSWORD = 0,
00044   TMR_AUTH_TYPE_GEN2_DENATRAN_IAV_WRITE_CREDENTIALS = 1,
00045   TMR_AUTH_TYPE_GEN2_DENATRAN_IAV_WRITE_SEC_CREDENTIALS = 2,
00046 } TMR_AuthType;
00047 
00051 typedef struct TMR_TagAuthentication
00052 {
00057   TMR_AuthType type;
00058   union
00059   {
00061     TMR_GEN2_Password gen2Password;
00063     TMR_GEN2_DENATRAN_IAV_WriteCredentials writeCreds;
00064     TMR_GEN2_DENATRAN_IAV_WriteSecCredentials writeSecCreds;
00065   } u;
00066 } TMR_TagAuthentication;
00067 
00068 TMR_Status TMR_TA_init_gen2(TMR_TagAuthentication *auth,
00069                             TMR_GEN2_Password password);
00070 
00071 TMR_Status TMR_TA_init_gen2_Denatran_IAV_writeCredentials(TMR_TagAuthentication *auth, uint8_t idLength, uint8_t* tafId, uint8_t len,
00072                                                           uint8_t  *data);
00073 TMR_Status TMR_TA_init_gen2_Denatran_IAV_writeSecCredentials(TMR_TagAuthentication *auth, uint8_t dataLength, uint8_t* data, uint8_t len,
00074                                                           uint8_t  *credentials);
00075 #ifdef  __cplusplus
00076 }
00077 #endif
00078 
00079 #endif /* _TMR_TAG_AUTH_H_ */


thingmagic_rfid
Author(s): Brian Bingham
autogenerated on Thu May 16 2019 03:01:24