sources/common/libs/STM32Cube_F4/Middlewares/ST/STM32_USB_Device_Library/Class/CCID/Src/usbd_ccid_if_template.c
/**
  * @brief  CCID_SEND_Process
  * @param  Command: pointer to a buffer containing command header
  * @param  Data: pointer to a buffer containing data sent from Host
  * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
  */
@brief  CCID_SEND_Process
@param  Command: pointer to a buffer containing command header
@param  Data: pointer to a buffer containing data sent from Host
@retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
@brief CCID_SEND_Process @param Command : pointer to a buffer containing command header @param Data : pointer to a buffer containing data sent from Host @retval Result of the operation : USBD_OK if all operations are OK else USBD_FAIL
static uint8_t CCID_Send_Process(uint8_t *Command, uint8_t *Data)
{
  Command_State_t Command_State = Command_NOT_OK;
  uint8_t SC_Command[5] = {0};
  UNUSED(Data);
  UNUSED(Command_State);
  UNUSED(SC_Command);
  switch (Command[1]) 
  {
    case SC_ENABLE:
      break;
    case SC_VERIFY:
      break;
    case SC_READ_BINARY :
      break;
    case SC_CHANGE :
      break;
    default:
      break;
  }
  (void)CCID_Response_Process(); 
  return ((uint8_t)USBD_OK);
}
static uint8_t CCID_Send_Process ( uint8_t * Command , uint8_t * Data ) { Command_State_t Command_State = Command_NOT_OK ; uint8_t SC_Command [ 5 ] = { 0 } ; UNUSED ( Data ) ; UNUSED ( Command_State ) ; UNUSED ( SC_Command ) ; switch ( Command [ 1 ] ) { case SC_ENABLE : break ; case SC_VERIFY : break ; case SC_READ_BINARY : break ; case SC_CHANGE : break ; default : break ; } ( void ) CCID_Response_Process ( ) ; return ( ( uint8_t ) USBD_OK ) ; }
@brief  CCID_SEND_Process
 @param  Command: pointer to a buffer containing command header
 @param  Data: pointer to a buffer containing data sent from Host
 @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
@brief CCID_SEND_Process @param Command : pointer to a buffer containing command header @param Data : pointer to a buffer containing data sent from Host @retval Result of the operation : USBD_OK if all operations are OK else USBD_FAIL
/* Initialize ICC APP header */ /* Start SC Demo ---------------------------------------------------------*/ /* type of instruction */ /* Add your code here */ /* Add your code here */ /* Add your code here */ /* Add your code here */ /* check if Command header is  OK */ /* Get ICC response */