/* Callback for requesting from upper layer memory for an incomming packet.  */
static __INLINE void callback_mem_request(void)
/* Callback for requesting from upper layer memory for an incomming packet.  */
static __INLINE void callback_mem_request(void)
{
    m_rx_stream_length          = uint16_decode(m_rx_length_buf) + SER_PHY_HEADER_SIZE;
    m_ser_phy_rx_event.evt_type = SER_PHY_EVT_RX_BUF_REQUEST;
    m_ser_phy_rx_event.evt_params.rx_buf_request.num_of_bytes =
        m_rx_stream_length - SER_PHY_HEADER_SIZE;
    callback_ser_phy_event(m_ser_phy_rx_event);
}