Embedded SDK
Embedded SDK
Classes | Macros | Typedefs | Enumerations | Functions
u2f_service.h File Reference
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
Include dependency graph for u2f_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  u2f_service_t
 

Macros

#define U2F_CHANNEL_ID_SIZE   4
 

Typedefs

typedef void(* u2fHandle_t) (struct u2f_service_t *service, uint8_t *inputBuffer, uint8_t *channel)
 
typedef void(* u2fPromptUserPresence_t) (struct u2f_service_t *service, bool enroll, uint8_t *applicationParameter)
 
typedef void(* u2fTimer_t) (struct u2f_service_t *service)
 
typedef struct u2f_service_t u2f_service_t
 

Enumerations

enum  u2f_transport_state_t {
  U2F_IDLE , U2F_HANDLE_SEGMENTED , U2F_PROCESSING_COMMAND , U2F_SENDING_RESPONSE ,
  U2F_SENDING_ERROR , U2F_INTERNAL_ERROR , U2F_FAKE_RECEIVED
}
 
enum  u2f_transport_media_t { U2F_MEDIA_NONE , U2F_MEDIA_USB , U2F_MEDIA_NFC , U2F_MEDIA_BLE }
 
enum  u2f_wait_asynch_state_t { U2F_WAIT_ASYNCH_IDLE , U2F_WAIT_ASYNCH_ON , U2F_WAIT_ASYNCH_REPLY_READY }
 

Functions

void u2f_message_complete (u2f_service_t *service)
 
void ctap2_handle_cmd_cbor (u2f_service_t *service, uint8_t *buffer, uint16_t length)
 
void ctap2_handle_cmd_cancel (u2f_service_t *service, uint8_t *buffer, uint16_t length)
 

Macro Definition Documentation

◆ U2F_CHANNEL_ID_SIZE

#define U2F_CHANNEL_ID_SIZE   4

Definition at line 27 of file u2f_service.h.

Typedef Documentation

◆ u2f_service_t

typedef struct u2f_service_t u2f_service_t

◆ u2fHandle_t

typedef void(* u2fHandle_t) (struct u2f_service_t *service, uint8_t *inputBuffer, uint8_t *channel)

Definition at line 31 of file u2f_service.h.

◆ u2fPromptUserPresence_t

typedef void(* u2fPromptUserPresence_t) (struct u2f_service_t *service, bool enroll, uint8_t *applicationParameter)

Definition at line 32 of file u2f_service.h.

◆ u2fTimer_t

typedef void(* u2fTimer_t) (struct u2f_service_t *service)

Definition at line 35 of file u2f_service.h.

Enumeration Type Documentation

◆ u2f_transport_media_t

Enumerator
U2F_MEDIA_NONE 
U2F_MEDIA_USB 
U2F_MEDIA_NFC 
U2F_MEDIA_BLE 

Definition at line 47 of file u2f_service.h.

◆ u2f_transport_state_t

Enumerator
U2F_IDLE 
U2F_HANDLE_SEGMENTED 
U2F_PROCESSING_COMMAND 
U2F_SENDING_RESPONSE 
U2F_SENDING_ERROR 
U2F_INTERNAL_ERROR 
U2F_FAKE_RECEIVED 

Definition at line 37 of file u2f_service.h.

◆ u2f_wait_asynch_state_t

Enumerator
U2F_WAIT_ASYNCH_IDLE 
U2F_WAIT_ASYNCH_ON 
U2F_WAIT_ASYNCH_REPLY_READY 

Definition at line 54 of file u2f_service.h.

Function Documentation

◆ ctap2_handle_cmd_cancel()

void ctap2_handle_cmd_cancel ( u2f_service_t service,
uint8_t buffer,
uint16_t  length 
)

◆ ctap2_handle_cmd_cbor()

void ctap2_handle_cmd_cbor ( u2f_service_t service,
uint8_t buffer,
uint16_t  length 
)

◆ u2f_message_complete()

void u2f_message_complete ( u2f_service_t service)