/* Code generated by LPCBus confnode */
static inline int16_t getWord(char *buffer)
return ((int16_t)*buffer<<8) + (int16_t)*(buffer+1);
static inline void setWord(char *buffer, int16_t word)
*buffer = (char)(word>>8);
*(buffer+1) = (char)(word);
static inline int8_t getBit(char *buffer, unsigned char bitOffset)
return (*buffer & (0x01 << bitOffset)) && 1;
static inline void setBit(char *buffer, unsigned char bitOffset, int8_t bit)
unsigned char msk = (0x01 << bitOffset);
static void setWord16(short *buffer, uint16_t word)
static int16_t getWord16(short *buffer)
return((uint16_t)*buffer);
unsigned char status; /* Current status of timer - running / expired */
uint64_t actValue; /* Actual timer value */
uint64_t toValue; /* Timeout value - initialized at startup */
uint64_t oldTime; /* Time at previous timer increment; NOTE: if RTIME (unsigned long long) changes type, oldTime has to be adapted */
/* LPCBus confnode user variables definition */
/* LPCBus confnode functions */
int __init_%(location_str)s(int argc,char **argv)
void __cleanup_%(location_str)s(void)
void __retrieve_%(location_str)s(void)
void __publish_%(location_str)s(void)