/* Sets MAC event listener. Sets the given event listener function to be triggered inside MAC_isr(). Assigning NULL pointer as the listener function will disable it. */
void MSS_MAC_set_callback(MSS_MAC_callback_t listener)
/* Sets MAC event listener. Sets the given event listener function to be triggered inside MAC_isr(). Assigning NULL pointer as the listener function will disable it. */
void MSS_MAC_set_callback(MSS_MAC_callback_t listener)
{
    MAC_BITBAND->CSR7_RIE = 0u;
    MAC_BITBAND->CSR7_TIE = 0u;
    g_mss_mac.listener = listener;
	if( listener != NULL_callback ) {
        MAC_BITBAND->CSR7_RIE = 1u;
        MAC_BITBAND->CSR7_TIE = 1u;
	}
}