GPIO Documentation question


#1

I´m using OASiS V2.30. All over GPIO documentation, symbols like 1UL occur. Its a define for certain bits in GPIO bit field I guess. Questions:

Where is it defined?
What does it mean exactly?

e.g.:

type def enum
{
ADL_IO_NUM_MSK = (0xFFF),
ADL_IO_TYPE_POS = 12,
ADL_IO_TYPE_MSK = (3UL<<ADL_IO_TYPE_POS),
ADL_IO_GPI = (1UL<<ADL_IO_TYPE_POS),
ADL_IO_GPO = (2UL<<ADL_IO_TYPE_POS),
ADL_IO_GPIO = (3UL<<ADL_IO_TYPE_POS),
_IO_LABEL_MSK = ADL_IO_NUM_MSK | ADL_IO_TYPE_MSK
} adl_ioLabel_e


#2

In the ‘C’ language standard! It is standard ‘C’ syntax - nothing specifically to do with Wavecom, Open-AT, or OASiS.

It is standard ‘C’ syntax - for an integer constant of Unsigned Long type.


#3

Thank you for your quick response. :slight_smile:. It helps a lot.