Hi, Just a quick question, I need to add extra functionality to some code but I have found syntax I am unfamiliar with. I'm pretty much a noob to c++ so it probably quite simple but I have had enormous problems trying to define a search term for google and I hope some one could help and point me in the right direction.

In the header it is defined as :-

uint16_t _inverse_logic:1;

I am unsure of what the ':1' suffix is for

and in the cpp file it is defined as

_inverse_logic(inverse_logic)
{
  setTX(transmitPin);
  setRX(receivePin);
}

I hope someone can point me to a topic to search and read up on thanks.

uint16_t _inverse_logic:1;

This creates a variable _inverse_logic which is one bit in size.

Is there any more syntax directly before or after this? This almost looks like part of a C-style bit field...

Further clarifying gerard's post uint16_t is a data type ..Kind of like int / char ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.