/* Set the LCDCA fine contrast. 
Transfer function: VLCD = 3.0V + (fcont * 0.016V) */
void lcdca_set_contrast(int8_t contrast)
/* Set the LCDCA fine contrast. 
Transfer function: VLCD = 3.0V + (fcont * 0.016V) */
void lcdca_set_contrast(int8_t contrast)
{
	uint32_t cfg = LCDCA->LCDCA_CFG;
	uint32_t fcst_filed;
	int8_t fcst_val_msk = (LCDCA_CFG_FCST_Msk >> (LCDCA_CFG_FCST_Pos + 1));
	int8_t fcst_sign_msk = ((LCDCA_CFG_FCST_Msk >> LCDCA_CFG_FCST_Pos) + 1) >> 1;
	cfg &= ~LCDCA_CFG_FCST_Msk;
	fcst_filed = (contrast & fcst_val_msk);
	if (contrast < 0) {
		fcst_filed |= fcst_sign_msk;
	}
	LCDCA->LCDCA_CFG = cfg | LCDCA_CFG_FCST(fcst_filed);
}