I get no errors compiling this in Visual Studio.
What compiler are you using?
The first error you report is at line 20. Assuming your line numbers line up (can't tell without code tags), line 20 is:
|
I2C_send1( 0x14 , 0x4C );
|
There does not appear to be anything wrong with that function call. The function prototype for I2C_send1 expects two chars and that is what you're passing.
You have been asked to use code tags. PLEASE DO SO.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
I will not respond further until you apply code tags.
Edit: Your second error message refers to D6T_checkPEC() at line 20, which is really line 24 of your code snippet.
|
if (! D6T_checkPEC(readbuff,34))
|
Again, there doesn't appear to be anything wrong with that call. D6T_checkPEC is expecting a char array and an int, and that is what you are passing.
You posted errors messages from lines 46-60, however, you only posted 46 lines of code.