PIR grove sensor that sends the sensed data to Thingspeak.com through the wifi module ESP 8266
Functions | |
void | ticker_set_handler (const ticker_data_t *const data, ticker_event_handler handler) |
Initialize a ticker and set the event handler. | |
void | ticker_irq_handler (const ticker_data_t *const data) |
IRQ handler that goes through the events to trigger overdue events. | |
void | ticker_remove_event (const ticker_data_t *const data, ticker_event_t *obj) |
Remove an event from the queue. | |
void | ticker_insert_event (const ticker_data_t *const data, ticker_event_t *obj, timestamp_t timestamp, uint32_t id) |
Insert an event to the queue. | |
timestamp_t | ticker_read (const ticker_data_t *const data) |
Read the current ticker's timestamp. | |
int | ticker_get_next_timestamp (const ticker_data_t *const data, timestamp_t *timestamp) |
Read the next event's timestamp. |
Function Documentation
int ticker_get_next_timestamp | ( | const ticker_data_t *const | data, |
timestamp_t * | timestamp | ||
) |
Read the next event's timestamp.
- Parameters:
-
data The ticker's data
- Returns:
- 1 if timestamp is pending event, 0 if there's no event pending
void ticker_insert_event | ( | const ticker_data_t *const | data, |
ticker_event_t * | obj, | ||
timestamp_t | timestamp, | ||
uint32_t | id | ||
) |
Insert an event to the queue.
- Parameters:
-
data The ticker's data obj The event object to be inserted to the queue timestamp The event's timestamp id The event object
void ticker_irq_handler | ( | const ticker_data_t *const | data ) |
IRQ handler that goes through the events to trigger overdue events.
- Parameters:
-
data The ticker's data
timestamp_t ticker_read | ( | const ticker_data_t *const | data ) |
Read the current ticker's timestamp.
- Parameters:
-
data The ticker's data
- Returns:
- The current timestamp
void ticker_remove_event | ( | const ticker_data_t *const | data, |
ticker_event_t * | obj | ||
) |
Remove an event from the queue.
- Parameters:
-
data The ticker's data obj The event object to be removed from the queue
void ticker_set_handler | ( | const ticker_data_t *const | data, |
ticker_event_handler | handler | ||
) |
Initialize a ticker and set the event handler.
- Parameters:
-
data The ticker's data handler A handler to be set
Generated on Tue Jul 12 2022 14:11:11 by 1.7.2