Searched refs:aci_q (Results 1 – 2 of 2) sorted by relevance
29 void aci_queue_init(aci_queue_t *aci_q) in aci_queue_init() argument35 aci_q->head = 0; in aci_queue_init()36 aci_q->tail = 0; in aci_queue_init()39 aci_q->aci_data[loop].buffer[0] = 0x00; in aci_queue_init()40 aci_q->aci_data[loop].buffer[1] = 0x00; in aci_queue_init()44 bool aci_queue_dequeue(aci_queue_t *aci_q, hal_aci_data_t *p_data) in aci_queue_dequeue() argument49 if (aci_queue_is_empty(aci_q)) in aci_queue_dequeue()54 memcpy((uint8_t *)p_data, (uint8_t *)&(aci_q->aci_data[aci_q->head]), sizeof(hal_aci_data_t)); in aci_queue_dequeue()55 aci_q->head = (aci_q->head + 1) % ACI_QUEUE_SIZE; in aci_queue_dequeue()60 bool aci_queue_dequeue_from_isr(aci_queue_t *aci_q, hal_aci_data_t *p_data) in aci_queue_dequeue_from_isr() argument[all …]
58 void aci_queue_init(aci_queue_t *aci_q);60 bool aci_queue_dequeue(aci_queue_t *aci_q, hal_aci_data_t *p_data);61 bool aci_queue_dequeue_from_isr(aci_queue_t *aci_q, hal_aci_data_t *p_data);63 bool aci_queue_enqueue(aci_queue_t *aci_q, hal_aci_data_t *p_data);64 bool aci_queue_enqueue_from_isr(aci_queue_t *aci_q, hal_aci_data_t *p_data);66 bool aci_queue_is_empty(aci_queue_t *aci_q);67 bool aci_queue_is_empty_from_isr(aci_queue_t *aci_q);69 bool aci_queue_is_full(aci_queue_t *aci_q);70 bool aci_queue_is_full_from_isr(aci_queue_t *aci_q);72 bool aci_queue_peek(aci_queue_t *aci_q, hal_aci_data_t *p_data);[all …]