/* Function for processing a received acknowledgement packet. 
Verifies does the received acknowledgement packet has the expected acknowledgement number and that the header checksum is correct. */
static __INLINE bool rx_ack_pkt_type_handle(const uint8_t *p_buffer)
/* Function for processing a received acknowledgement packet. 
Verifies does the received acknowledgement packet has the expected acknowledgement number and that the header checksum is correct. */
static __INLINE bool rx_ack_pkt_type_handle(const uint8_t *p_buffer)
{
    const uint32_t expected_checksum = 
        ((p_buffer[0] + p_buffer[1] + p_buffer[2] + p_buffer[3])) & 0xFFu;
    if (expected_checksum != 0)
    {    
        return false;
    }
    const uint8_t ack_number = (p_buffer[0] >> 3u) & 0x07u;
    return (ack_number == expected_ack_number_get());
}