/* Write segments data to display memory in character mode.  */
void slcd_character_write_data(uint8_t com_line_index, uint8_t seg_line_index, uint32_t seg_data, uint32_t data_mask)
/* Write segments data to display memory in character mode.  */
void slcd_character_write_data(uint8_t com_line_index, uint8_t seg_line_index, uint32_t seg_data, uint32_t data_mask)
{
	SLCD->CMINDEX.reg = SLCD_CMINDEX_SINDEX(seg_line_index)
						| SLCD_CMINDEX_CINDEX(com_line_index);
	SLCD->CMDMASK.reg = SLCD_CMDMASK_SDMASK(data_mask);
	SLCD->CMDATA.reg = SLCD_CMDATA_SDATA(seg_data);
	while (slcd_get_char_writing_status()) {
	}
}