Q
Quantum
I have the following Code I have a problem with.
DataValues and RegNbr etc ... Never get written to.
There's a problem about accessing the data structure member sdata.
Can Any body Help ...
Reply to (e-mail address removed)
A C programmer ...
typedef struct
{
Uint32 lwDataSize;
Uint16 BoxIdOpFrom; /*The owner of the op*/
Uint16 BoxIdOpTo; /*The destinataire op*/
Uint16 wOpCode;
Uint8 *sData;
}CommStructData;
RetCode OperationSetRegister(CommStructData *pStructDataIn)
{
Uint8 *DataValues;
Uint8 RegNbr;
Uint8 RegValue;
RetCode err=ERR_OK;
DataValues = (Uint8 *) pStructDataIn->sData;
RegNbr = *DataValues;
DataValues++;
RegValue = *DataValues;
Rs232RFWriteReg(RegNbr, RegValue);
err = SendRegister(RegNbr, RegValue);
}
DataValues and RegNbr etc ... Never get written to.
There's a problem about accessing the data structure member sdata.
Can Any body Help ...
Reply to (e-mail address removed)
A C programmer ...
typedef struct
{
Uint32 lwDataSize;
Uint16 BoxIdOpFrom; /*The owner of the op*/
Uint16 BoxIdOpTo; /*The destinataire op*/
Uint16 wOpCode;
Uint8 *sData;
}CommStructData;
RetCode OperationSetRegister(CommStructData *pStructDataIn)
{
Uint8 *DataValues;
Uint8 RegNbr;
Uint8 RegValue;
RetCode err=ERR_OK;
DataValues = (Uint8 *) pStructDataIn->sData;
RegNbr = *DataValues;
DataValues++;
RegValue = *DataValues;
Rs232RFWriteReg(RegNbr, RegValue);
err = SendRegister(RegNbr, RegValue);
}