C API for BALTECH SDK
mobileid.h
Go to the documentation of this file.
1 
11 #ifndef __BRP_BALTECH_API_CMDS_MOBILEID_H__
12 #define __BRP_BALTECH_API_CMDS_MOBILEID_H__
13 #include "../typedefs.h"
17 #define BRP_MobileId_ErrNoCredential BRP_ERR_STATUS(0x4C00, 0x01)
18 
23 #define BRP_MobileId_ErrProtocol BRP_ERR_STATUS(0x4C00, 0x02)
24 
28 #define BRP_MobileId_ErrAuthentication BRP_ERR_STATUS(0x4C00, 0x03)
29 
33 #define BRP_MobileId_ErrCredentialVersion BRP_ERR_STATUS(0x4C00, 0x04)
34 
37 #define BRP_MobileId_ErrCredentialCmac BRP_ERR_STATUS(0x4C00, 0x05)
38 
41 #define BRP_MobileId_ErrDisabled BRP_ERR_STATUS(0x4C00, 0x10)
42 
56 brp_errcode brp_MobileId_Setup(brp_protocol protocol, brp_buf Key, size_t Key_len);
73 brp_errcode brp_MobileId_GetVirtualCredentialId(brp_protocol protocol, brp_buf* CredentialId, size_t* CredentialId_len, brp_mempool *mempool);
74 #endif
75 
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
brp_errcode brp_MobileId_GetVirtualCredentialId(brp_protocol protocol, brp_buf *CredentialId, size_t *CredentialId_len, brp_mempool *mempool)
This command checks if a Mobile ID credential has been presented to the reader since the last MobileI...
brp_MobileId_Enable_Mode
Definition: typedefs.h:2053
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_MobileId_Setup(brp_protocol protocol, brp_buf Key, size_t Key_len)
This command is used to set up Mobile ID parameters.
brp_errcode brp_MobileId_Enable(brp_protocol protocol, brp_MobileId_Enable_Mode Mode)
This command enables/disables Mobile ID.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61