/* Initializes the TSENS. 
Initializes the TSENS device struct and the hardware module based on the given configuration struct values. */
enum status_code tsens_init(struct tsens_config *config)
/* Initializes the TSENS. 
Initializes the TSENS device struct and the hardware module based on the given configuration struct values. */
enum status_code tsens_init(struct tsens_config *config)
{
	Assert(config);
	system_apb_clock_set_mask(SYSTEM_CLOCK_APB_APBA, MCLK_APBAMASK_TSENS);
	if (TSENS->CTRLA.reg & TSENS_CTRLA_SWRST) {
		return STATUS_BUSY;
	}
	if (TSENS->CTRLA.reg & TSENS_CTRLA_ENABLE) {
		return STATUS_ERR_DENIED;
	}
	return _tsens_set_config(config);
}