qep_port.h File Reference

QEP/C port to QK for a "generic" C compiler. More...

#include "qep.h"
#include "qs_port.h"

Go to the source code of this file.

Defines

#define Q_SIGNAL_SIZE   1
 The size (in bytes) of the signal of an event. Valid values: 1, 2, or 4; default 1.

Typedefs

typedef signed char int8_t
typedef signed short int16_t
typedef signed long int32_t
typedef unsigned char uint8_t
typedef unsigned short uint16_t
typedef unsigned long uint32_t

Detailed Description

QEP/C port to QK for a "generic" C compiler.

Note:
This is just an example of a QEP port used for "linting" the QEP. Ports of QEP are located in the directory <qpc_3>/ports.

Definition in file qep_port.h.


Define Documentation

#define Q_SIGNAL_SIZE   1

The size (in bytes) of the signal of an event. Valid values: 1, 2, or 4; default 1.

This macro can be defined in the QEP ports to configure the QSignal type. If the macro is not defined, the default of 1 byte will be chosen in qep.h. The valid Q_SIGNAL_SIZE values of 1, 2, or 4, correspond to QSignal of uint8_t, uint16_t, and uint32_t, respectively. The QSingal data type determines the dynamic range of numerical values of signals you your application.

See also:
QEvent
Note:
Once you choose a certain value of Q_SIGNAL_SIZE, you must consistently use the same value in building all the QP component libraries and your own application code. The consistency is guaranteed if you define this macro only once in the qep_port.h header file and henceforth include this header file in all builds.

Definition at line 58 of file qep_port.h.


Typedef Documentation

typedef signed short int16_t

C99 exact-width 16-bit signed int

Definition at line 62 of file qep_port.h.

typedef signed long int32_t

C99 exact-width 32-bit signed int

Definition at line 63 of file qep_port.h.

typedef signed char int8_t

C99 exact-width 8-bit signed int

Definition at line 61 of file qep_port.h.

typedef unsigned short uint16_t

C99 exact-width 16-bit unsigned int

Definition at line 65 of file qep_port.h.

typedef unsigned long uint32_t

C99 exact-width 32-bit unsigned int

Definition at line 66 of file qep_port.h.

typedef unsigned char uint8_t

C99 exact-width 8-bit unsigned int

Definition at line 64 of file qep_port.h.

Generated on Tue Mar 16 19:38:10 2010 for QP/C by  doxygen 1.6.3