Embedded SDK
Embedded SDK
Functions
u2f_impl.h File Reference
#include "usbd_hid_impl.h"
Include dependency graph for u2f_impl.h:

Go to the source code of this file.

Functions

int u2f_get_cmd_msg_data_length (const uint8_t *buffer, uint16_t length)
 

Function Documentation

◆ u2f_get_cmd_msg_data_length()

int u2f_get_cmd_msg_data_length ( const uint8_t buffer,
uint16_t  length 
)

Parse the cmd msg header to retrieve the data length. Return -1 in case of parsing error. Else return the data length.