3.3.8.1 NVMCTRL_CallbackRegister

Sets the pointer to the function (and it's context) to be called when the operation is complete.

This function sets the pointer to a client function to be called "back" when the NVMCTRL has completed an operation and is ready to receive new command. It also passes a context value that is passed into the callback function when it is called. This function is available only when the library is generated with interrupt option (in MCC) enabled.

void NVMCTRL_CallbackRegister
(
    NVMCTRL_CALLBACK  callback, 
    uintptr_t context);

Precondition

  • Interrupt option in MCC should have been enabled

Parameters

  • callback - A pointer to a function with a calling signature defined by the NVMCTRL_CALLBACK data type.
  • context - A value (usually a pointer) passed (unused) into the function identified by the callback parameter.

Returns

  • void