/* Registers a callback. 
Registers a callback function which is implemented by the user. */
void m2m_register_callback(struct m2m_module *const m2m, m2m_callback_t callback, enum m2m_callback_type type)
/* Registers a callback. 
Registers a callback function which is implemented by the user. */
void m2m_register_callback(struct m2m_module *const m2m, m2m_callback_t callback, enum m2m_callback_type type)
{
	Assert(m2m);
	Assert(callback);
	if (type < M2M_CALLBACK_N) {
		m2m->callbacks[type] = callback;
	}
}