ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
ack_cache.h
Go to the documentation of this file.
1
13
#ifndef ACK_CACHE_H
14
#define ACK_CACHE_H
15
16
#include <stdint.h>
17
18
#define ACK_CACHE_LEN 32u
19
enum
{
ACKC_NEW
= 0,
ACKC_PENDING
= 1,
ACKC_DONE
= 2 };
20
21
void
ackc_reset
(
void
);
24
uint8_t
ackc_begin
(uint8_t op, uint8_t
seq
, uint8_t *
result
, uint8_t *reason);
26
void
ackc_finish
(uint8_t op, uint8_t
seq
, uint8_t
result
, uint8_t reason);
27
28
#endif
/* ACK_CACHE_H */
ackc_finish
void ackc_finish(uint8_t op, uint8_t seq, uint8_t result, uint8_t reason)
Completes the entry (or creates it if it was evicted meanwhile).
Definition
ack_cache.c:44
ACKC_PENDING
@ ACKC_PENDING
Definition
ack_cache.h:19
ACKC_NEW
@ ACKC_NEW
Definition
ack_cache.h:19
ACKC_DONE
@ ACKC_DONE
Definition
ack_cache.h:19
ackc_begin
uint8_t ackc_begin(uint8_t op, uint8_t seq, uint8_t *result, uint8_t *reason)
Looks up (op, seq).
Definition
ack_cache.c:31
ackc_reset
void ackc_reset(void)
Definition
ack_cache.c:12
result
static void result(const fc_cmd_t *c, uint8_t res, uint8_t why)
Definition
fc_core.c:224
seq
uint8_t seq
Definition
log_task.c:48
telemetry
ack_cache.h
Generated by
1.9.8