Platform/ECM3532/M3/framework/serial_proto/src/serial_proto.c
/**
 * Send response of data packet
 *
 * @param resp response packer
 * @return 0 on success, non-zero error code on failure
 *
 */
Send response of data packet
@param resp response packer
@return 0 on success, non-zero error code on failure
Send response of data packet @param resp response packer @return 0 on success non - zero error code on failure
int sendDataResp(tDataRespPkt *resp)
{
  tPktHdr pHdr;
  xSemaphoreTake(spDev.xSPLock, portMAX_DELAY);
  ecm35xx_printf("Send Data resp\r\n");
  pHdr.sof = SOF;
  pHdr.ptype = DATA_RESP;
  pHdr.plen = sizeof(tDataRespPkt);
  xportSend((uint8_t *)&pHdr, sizeof(tPktHdr));
  xportSend((uint8_t *)resp, sizeof(tDataRespPkt));
  xSemaphoreGive(spDev.xSPLock);
  return 0;
}
int sendDataResp ( tDataRespPkt * resp ) { tPktHdr pHdr ; xSemaphoreTake ( spDev . xSPLock , portMAX_DELAY ) ; ecm35xx_printf ( " \r \n " ) ; pHdr . sof = SOF ; pHdr . ptype = DATA_RESP ; pHdr . plen = sizeof ( tDataRespPkt ) ; xportSend ( ( uint8_t * ) & pHdr , sizeof ( tPktHdr ) ) ; xportSend ( ( uint8_t * ) resp , sizeof ( tDataRespPkt ) ) ; xSemaphoreGive ( spDev . xSPLock ) ; return 0 ; }
Send response of data packet
 @param resp response packer
 @return 0 on success, non-zero error code on failure
Send response of data packet @param resp response packer @return 0 on success non - zero error code on failure