ECU/GSM/dist/src/USART_program.c
Error_Status USART_enumSetCallback(u8 Channel, void (*x)(u16)) {
	Error_Status returnVal = OK;

	if (Channel >= CHANNEL_MIN && Channel <= CHANNEL_MAX) {
		switch (Channel) {
			case 1:
				CallbackFunction1 = x;
				break;
			case 2:
				CallbackFunction2 = x;
				break;
			case 3:
				CallbackFunction3 = x;
				break;
			default:
				returnVal = NOK;
		}
	} else {
		returnVal = numberOutOfRange;
	}

	return returnVal;
}
/**
  * @brief  Sets the Callback function when the RXNE Handler gets called
  * @param  @param  Channel:	Number of the UART Channel to use.
  * 					Can be USART_CHANNEL_x where x is from 1 to 5
  * @param  void (*x)(u16): The function that takes 16 bits argument and returns void
  * @retval Error_Status
  */
@brief  Sets the Callback function when the RXNE Handler gets called
@param  @param  Channel:    Number of the UART Channel to use.
Can be USART_CHANNEL_x where x is from 1 to 5
@param  void (*x)(u16): The function that takes 16 bits argument and returns void
@retval Error_Status
@brief Sets the Callback function when the RXNE Handler gets called @param @param Channel : Number of the UART Channel to use . Can be USART_CHANNEL_x where x is from 1 to 5 @param void ( * x ) ( u16 ) : The function that takes 16 bits argument and returns void @retval Error_Status
Error_Status USART_enumSetCallback(u8 Channel, void (*x)(u16)) {
	Error_Status returnVal = OK;
	if (Channel >= CHANNEL_MIN && Channel <= CHANNEL_MAX) {
		switch (Channel) {
			case 1:
				CallbackFunction1 = x;
				break;
			case 2:
				CallbackFunction2 = x;
				break;
			case 3:
				CallbackFunction3 = x;
				break;
			default:
				returnVal = NOK;
		}
	} else {
		returnVal = numberOutOfRange;
	}
	return returnVal;
}
Error_Status USART_enumSetCallback ( u8 Channel , void ( * x ) ( u16 ) ) { Error_Status returnVal = OK ; if ( Channel >= CHANNEL_MIN && Channel <= CHANNEL_MAX ) { switch ( Channel ) { case 1 : CallbackFunction1 = x ; break ; case 2 : CallbackFunction2 = x ; break ; case 3 : CallbackFunction3 = x ; break ; default : returnVal = NOK ; } } else { returnVal = numberOutOfRange ; } return returnVal ; }
@brief  Sets the Callback function when the RXNE Handler gets called
 @param  @param  Channel:    Number of the UART Channel to use.
@brief Sets the Callback function when the RXNE Handler gets called @param @param Channel : Number of the UART Channel to use .