STM32 Traffic Control
Loading...
Searching...
No Matches
queue.h
Go to the documentation of this file.
1
5
6#ifndef QUEUE_H_
7#define QUEUE_H_
8
9#include <stdint.h>
10#include <stdbool.h>
11#include "stm32f446xx.h"
12
13// Function Prototypes
14bool queue_is_empty(void);
15bool queue_is_full(void);
16void queue_enqueue(uint32_t light_pair);
17int32_t queue_dequeue(void);
18
19#endif /* QUEUE_H_ */
int32_t queue_dequeue(void)
Remove and return the next traffic light pair request.
Definition queue.c:59
bool queue_is_empty(void)
Check if the traffic light request queue is empty.
Definition queue.c:26
bool queue_is_full(void)
Check if the traffic light request queue is full.
Definition queue.c:31
void queue_enqueue(uint32_t light_pair)
Add a traffic light pair request to the queue.
Definition queue.c:43