rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
pdmini_int.h
Go to the documentation of this file.
1
10
11#ifndef PDMINI_INT_H
12#define PDMINI_INT_H
13
14#include "pdmini.h"
15
16#include <stdbool.h>
17#include <stddef.h>
18#include <stdint.h>
19
32void pdmini_start(pdmini_t *d, uint32_t now, const uint8_t *req, size_t n,
33 bool write);
34
42void pdmini_read1(pdmini_t *d, uint32_t now, uint8_t cmd);
43
52void pdmini_finish(pdmini_t *d, uint32_t now, bool ok);
53
60uint16_t pdmini_target_mv(const pdmini_t *d);
61
69bool pdmini_under_line(const pdmini_t *d);
70
78
79#endif /* PDMINI_INT_H */
void pdmini_start(pdmini_t *d, uint32_t now, const uint8_t *req, size_t n, bool write)
Starts the transaction req of n bytes and its CRC8: attaches the pins and enters PD_ATTACH.
Definition pdmini.c:135
bool pdmini_under_line(const pdmini_t *d)
Whether the input last read lies under the set point read back and PDMINI_HEADROOM_MV.
Definition pdmini.c:316
void pdmini_sag_hold(pdmini_t *d)
The output switched off for the input, or its ON not written, and held off until an OFF is asked.
Definition pdmini.c:324
uint16_t pdmini_target_mv(const pdmini_t *d)
The voltage set point the module is given for the one asked.
Definition pdmini.c:301
void pdmini_finish(pdmini_t *d, uint32_t now, bool ok)
Ends the transaction under way, ok when its reply was taken (a write: when its bytes left),...
Definition pdmini.c:160
void pdmini_read1(pdmini_t *d, uint32_t now, uint8_t cmd)
Starts the one-byte read cmd.
Definition pdmini.c:155
The WeAct PD Power Mini V1 Buck on its UART: the codec and a driver that talks to it one transaction ...
Driver state: what is asked, what is known, and the transaction under way.
Definition pdmini.h:290