rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
link_port.h
Go to the documentation of this file.
1
23#ifndef RCBENCH_LINK_PORT_H
24#define RCBENCH_LINK_PORT_H
25
26#include <stdbool.h>
27#include <stdint.h>
28
29#include "link_host.h"
30#include "link_msg.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
52typedef struct {
53 bool (*exchange)(void *ctx, link_host_t *h, const link_msg_t *req,
54 link_msg_t *reply);
55 uint32_t (*now_ms)(void *ctx);
56 void *ctx;
57 void (*between)(void *ctx);
59
88bool link_write_acked(link_host_t *h, const link_port_t *port, uint8_t page,
89 uint8_t offset, uint8_t count, const uint16_t *regs,
90 link_msg_t *reply);
91
105bool link_read_window(link_host_t *h, const link_port_t *port, uint8_t page,
106 uint8_t offset, uint8_t count, link_msg_t *reply);
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif /* RCBENCH_LINK_PORT_H */