62 #ifdef CB_EVENT_NON_POSIX_H 66 #include CB_EVENT_NON_POSIX_H 74 #define CB_USLEEP(x) usleep(x) 79 #define CB_SLEEP(x) sleep(x) 84 #define CB_MKTIME(x) mktime(x) 91 struct timespec ts, rts;
94 res=nanosleep(&ts, &rts);
98 #endif // CB_EVENT_NON_POSIX_H 144 uint32_t value_ms, uint32_t interval_ms);
cb_timer_clear_t
enumeration used for timer to clear, decrement or no clear. This enumeration has following members:
Definition: cb_tmevent.h:115
cb_timer_object_t * cb_timer_create(char *tname)
creates timer.
static int cb_nanosleep64(int64_t ts64, int64_t *rts64)
nano second unit sleep
Definition: cb_tmevent.h:89
Definition: cb_tmevent.h:117
struct cb_timer_object cb_timer_object_t
handler for cb_timer_object
Definition: cb_tmevent.h:106
void cb_timer_close(cb_timer_object_t *mtmo)
close the timer
bool cb_timer_expired(cb_timer_object_t *mtmo, cb_timer_clear_t clear)
timer expired
#define NULL
Define NULL if not defined.
Definition: csl_types.h:107
#define UB_NSEC2TS(ns, ts)
convert nanosec value to 'struct timespec' vaule
Definition: unibase_macros.h:223
Definition: cb_tmevent.h:116
uint8_t clear
Definition: tisci_rm_udmap.h:174
#define UB_TS2NSEC(ts)
convert 'struct timespec' vaule to nanosecond integer
Definition: unibase_macros.h:205
Definition: cb_tmevent.h:118
int cb_timer_start_interval(cb_timer_object_t *mtmo, uint32_t value_ms, uint32_t interval_ms)
start timer interval.
int cb_timer_stop(cb_timer_object_t *mtmo)
timer stop.