cin_ctl_read changed to return (uint16_t)(buf) instean of (uint16_t)(buf & 0x0000ffff)