pnozz_write_dac(p, DAC_INDX_LO, (offset & 0xff)); pnozz_write_dac(p, DAC_INDX_HI, (offset & 0xff00) >> 8);
void pnozz_write_dac_ctl_reg_2(PnozzPtr p, int offset, unsigned short val){	pnozz_write_dac(p, DAC_INDX_CTL, DAC_INDX_AUTOINCR);	pnozz_write_dac(p, DAC_INDX_LO, (offset & 0xff));	pnozz_write_dac(p, DAC_INDX_HI, (offset & 0xff00) >> 8);	pnozz_write_dac(p, DAC_INDX_DATA, val & 0xff);	pnozz_write_dac(p, DAC_INDX_DATA, (val & 0xff00) >> 8);}