/* Writes a value to a control register in the LCD controller.  */
EMSTATUS DMDIF_writeReg(uint8_t reg, uint16_t data)
/* Writes a value to a control register in the LCD controller.  */
EMSTATUS DMDIF_writeReg(uint8_t reg, uint16_t data)
{
  setNextReg(reg);
  *data_register = data;
  return DMD_OK;
}