Hi All,
Can any one help on this issue please. I am facing this problem. adl_busSubscribe return 0 as handle for this code.
BusHandle = adl_busSubscribe ( ADL_BUS_TYPE_I2C_SOFT | BusSettings.Addr,ADL_IO_ID_U32_TO_U16 ( BusSettings.I2CSDA)
| ( ADL_IO_ID_U32_TO_U16 (BusSettings.I2CSCL ) << 16 ) );
But when I attempt to write/read the bus it return -1 (WM_BUS_MODE_UNKNOWN_TYPE )
may I know what’s wrong with the following code?
u8 WriteData;
writeReturn = adl_busRead ( (u8)BusHandle, (adl_busAccess_t *)NULL,( u32) DATA_LENGTH , (void *) &WriteData);
change = !change;
if (change)
{
WriteData = 0x08;
writeReturn = adl_busWrite ( (u8)BusHandle, (adl_busAccess_t *)NULL,( u32) DATA_LENGTH , (void *) &WriteData );
Do wavecom have any documentation on this? Is this a bug in Open AT