Go to the documentation of this file.00001
00002 #ifndef _TMR_TAG_AUTH_H
00003 #define _TMR_TAG_AUTH_H
00004
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036 #include "tmr_gen2.h"
00037
00038
00039
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