Hi,
My program is doing an i2c page read operation. The function declaration is:
Quote:
int PageRead( uint8_t address, uint8_t reg, uint8_t length, uint8_t* pBuffer );
|
I am calling this function from my main like this:
Quote:
uint8_t length = 10;
uint8_t buf[2][20];
uint8_t addr = 0x50;
uint8_t reg = 0x00;
ret = PageRead( addr, reg, length, buf[0]);
|
I am trying to compile my program and getting error from the line calling PageRead:
Quote:
error: large integer implicitly truncated to unsigned type
|
I am compiling with options -c -fPIC -g -O2 -m64 -Werror -Wcomments -Wreturn-type -Wsign-compare -Wall .
Can anyone help me to fix this?
Thanks in advance,
Sajna