rfc_calc_fcs() function
* Function rfc_calc_fcs * Description This function calculate FCS for the RFCOMM frame * (GSM 07.10 TS 101 369 V6.3.0) * Input len - number of bytes in the message * p - points to message
![]()
UINT8 rfc_calc_fcs (UINT16 len, UINT8 *p)![]()
*p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);![]()
*p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);![]()
*p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);![]()
*p_data = RFCOMM_DISC_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);![]()
*p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci);![]()
*p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci);
rfc_calc_fcs() is called by 6 functions:
![]()
rfc_calc_fcs()
rfc_calc_fcs() reads 1 variable:
![]()
rfc_calc_fcs()