Hi,
I want to pass the address/pointer of a literal value to a function taking pointer to a char but I don't know how to get that address. I want to do sth like that:
WriteTX( ADDRESS_OF( 'a'), 1);
The function definition is:
typedef unsigned char uchar;
uchar WriteTX(uchar * pBuf, uchar bytes)
{
uchar status, i;
CSN(0);
SPI_send(FLUSH_TX);
SPI_send(WR_TX_PLOAD);
for(i=0; i<bytes; i++)
status = SPI_send(pBuf[i]);
CSN(1);
return(status);
}
Thanks for help