/* 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);
  DVK_writeRegister( (uint16_t *) data_register, ((data & 0xff00) >> 8) << 1);
  DVK_writeRegister( (uint16_t *) data_register, (data & 0x00ff) << 1);
  return DMD_OK;
}