hi,
i use
hVP0CapChan0 = FVID_create("/VPORT0/A/0", IOM_INPUT, &status, (Ptr)&vpCaptureParams, NULL);
if( hVP0CapChan0 == NULL)
printf("error\n");
in order to access to VP0. But the thing is i always got a NULL handle.
and I stepped in to the program and found that there is a problem on TVP5154_powerdown().
in this function
retVal |= regSetTVP5154(chan,
addrI2C,
TVP5154_DECODER_WRITE_ENABLES_ADDR,
&decoderChan,
numBytes);
retVal |= regSetTVP5154(chan,
addrI2C,
TVP5154_POWERUP_REG_ADDR,
&enableDecoder,
numBytes);
and other regSetTVP5154() invokings seem returning wrong because of the i2c_writeReg() in it returning wrong.
since the i2c_init() got me a valid handle, where could it be wrong when it invokes i2c_writeReg()?
any hints could be helpful.
thanks a lot!