Compiler problem

Hey Guys

I have rewritten a library for the a7015 2.4GHz Chip. My target is to make a library with example for the chip. But there isn’t my problem.
I’ve got stuck in the last piece of the process. :zipper_mouth_face:

I’ve got this error message:

my_a7105:11: error: variable or field 'A7105_WriteReg' declared void
my_a7105:11: error: 'Uint8' was not declared in this scope
my_a7105:11: error: 'Uint8' was not declared in this scope
my_a7105:12: error: 'Uint8' does not name a type
my_a7105:13: error: variable or field 'ByteSend' declared void
my_a7105:13: error: 'Uint8' was not declared in this scope
my_a7105:14: error: 'Uint8' does not name a type
my_a7105:15: error: variable or field 'Send4Bit' declared void
my_a7105:15: error: 'Uint8' was not declared in this scope
my_a7105:16: error: variable or field 'StrobeCmd' declared void
my_a7105:16: error: 'Uint8' was not declared in this scope
my_a7105:17: error: variable or field 'A7105_WriteID' declared void
my_a7105:17: error: 'Uint32' was not declared in this scope
my_a7105:18: error: variable or field 'SetCH' declared void
my_a7105:18: error: 'Uint8' was not declared in this scope
my_a7105:20: error: variable or field 'WaitBit_0' declared void
my_a7105:20: error: 'Uint8' was not declared in this scope
my_a7105:20: error: 'Uint8' was not declared in this scope
my_a7105:21: error: variable or field 'SelVCOBand' declared void
my_a7105:21: error: 'Uint8' was not declared in this scope
my_a7105:21: error: 'Uint8' was not declared in this scope
my_a7105:27: error: variable or field 'Swap' declared void
my_a7105:27: error: 'Uint8' was not declared in this scope
my_a7105:27: error: 'Uint8' was not declared in this scope
a7105lib.ino: In function 'void A7105_reset()':
a7105lib:225: error: 'A7105_WriteReg' was not declared in this scope
a7105lib.ino: In function 'void analyse()':
a7105lib:232: error: 'A7105_ReadReg' was not declared in this scope
a7105lib.ino: In function 'void A7105_WriteReg(unsigned char, unsigned char)':
a7105lib:289: error: 'ByteSend' was not declared in this scope
a7105lib.ino: In function 'unsigned char A7105_ReadReg(unsigned char)':
a7105lib:304: error: 'ByteSend' was not declared in this scope
a7105lib:307: error: 'ByteRead' was not declared in this scope
a7105lib.ino: In function 'void A7105_Cal()':
a7105lib:437: error: 'WaitBit_0' was not declared in this scope
a7105lib:471: error: 'SelVCOBand' was not declared in this scope
a7105lib.ino: In function 'void initRF()':
a7105lib:552: error: 'A7105_Reset' was not declared in this scope

i tryedout a few things but it won’t work.
I think the error should be that the functions aren’t in the right order but idk.
And !!!
maybe there are some charachters in unicode because there are a few lines copied from a chinese datasheet
i fixed already some characters and it should be done but maybe there are some left.

The Code is in the attatchment because there are 1k lines :smiley:

thanks
noscript

my_a7105.zip (4.86 KB)

I can't look at the code right now but from the messages it looks like you've used Uint8 where you meant uint8_t.

i think this wouldn't be the problem ... i dit define them like this:

#define Uint8 unsigned char
#define Uint16 unsigned int
#define Uint32 unsigned long

but can it be that Uint8 is already used by the arduino ? and i did redefine it ?

No, I think the problem is you've tried to include source code file .ino. You have to create e.g. header (.h) file and include it otherwise definition will be missing. Btw, I'm recommending to use typedef instead of #define.

i have update the code . But There is still error is pending. Check the error

In file included from my_a7105.cpp:2:
/a7105lib.h: In function ‘void initRF()’:
a7105lib.h:602: error: ‘A7105_Reset’ was not declared in this scope

my_a7105.zip (5.1 KB)

Did you mean
void A7105_reset() { ?

I really don't know why you've bothered with these

#define Sint8_t  signed   char
#define Uint8 unsigned char
#define Uint16 unsigned int
#define Uint32 unsigned long

They're non-standard.

Thanks Guys the Problem is solved!

The last fault was that I have written:
"void A7105_reset() {"
and not:
"void A7105_Reset() {"
Because the compiler is case sensitiv :smiley:

Thanks again