Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
u2f_transport.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "u2f_types.h"
Include dependency graph for u2f_transport.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  u2f_transport_t

Macros

#define U2F_FORBIDDEN_CID   (0x00000000)
#define U2F_BROADCAST_CID   (0xFFFFFFFF)

Enumerations

enum  u2f_transport_type_t { U2F_TRANSPORT_TYPE_USB_HID = 0x00 , U2F_TRANSPORT_TYPE_BLE = 0x01 }

Functions

void U2F_TRANSPORT_init (u2f_transport_t *handle, uint8_t type)
void U2F_TRANSPORT_rx (u2f_transport_t *handle, uint8_t *buffer, uint16_t length)
void U2F_TRANSPORT_tx_done (u2f_transport_t *handle)
void U2F_TRANSPORT_tx (u2f_transport_t *handle, uint8_t cmd, const uint8_t *buffer, uint16_t length, uint8_t *tx_packer_buffer, uint16_t tx_packet_buffer_size)

Macro Definition Documentation

◆ U2F_BROADCAST_CID

#define U2F_BROADCAST_CID   (0xFFFFFFFF)

Definition at line 65 of file u2f_transport.h.

◆ U2F_FORBIDDEN_CID

#define U2F_FORBIDDEN_CID   (0x00000000)

Definition at line 64 of file u2f_transport.h.

Enumeration Type Documentation

◆ u2f_transport_type_t

Enumerator
U2F_TRANSPORT_TYPE_USB_HID 
U2F_TRANSPORT_TYPE_BLE 

Definition at line 25 of file u2f_transport.h.

Function Documentation

◆ U2F_TRANSPORT_init()

void U2F_TRANSPORT_init ( u2f_transport_t * handle,
uint8_t type )

Definition at line 205 of file u2f_transport.c.

◆ U2F_TRANSPORT_rx()

void U2F_TRANSPORT_rx ( u2f_transport_t * handle,
uint8_t * buffer,
uint16_t length )

Definition at line 217 of file u2f_transport.c.

◆ U2F_TRANSPORT_tx()

void U2F_TRANSPORT_tx ( u2f_transport_t * handle,
uint8_t cmd,
const uint8_t * buffer,
uint16_t length,
uint8_t * tx_packer_buffer,
uint16_t tx_packet_buffer_size )

Definition at line 240 of file u2f_transport.c.

◆ U2F_TRANSPORT_tx_done()

void U2F_TRANSPORT_tx_done ( u2f_transport_t * handle)

Definition at line 226 of file u2f_transport.c.