3.3.13.4 SERCOMx_USART_ReadCallbackRegister

Sets the pointer to the function (and it's context) to be called when the given USART's read events occur.

This function sets the pointer to a client function to be called "back" when the given USART's read events occur. It also passes a context value (usually a pointer to a context structure) that is passed into the function when it is called.

void 
SERCOMx_USART_ReadCallbackRegister
(
    SERCOM_USART_CALLBACK callback, 
    uintptr_t context
);

Precondition

  • SERCOMx_USART_Initialize must have been called for the associated USART instance.

Parameters

  • callback - registered call back function
  • context - callers context

Returns

  • void