rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
32
void
pdmini_start
(
pdmini_t
*d, uint32_t now,
const
uint8_t *req,
size_t
n,
33
bool
write);
34
42
void
pdmini_read1
(
pdmini_t
*d, uint32_t now, uint8_t cmd);
43
52
void
pdmini_finish
(
pdmini_t
*d, uint32_t now,
bool
ok);
53
60
uint16_t
pdmini_target_mv
(
const
pdmini_t
*d);
61
69
bool
pdmini_under_line
(
const
pdmini_t
*d);
70
77
void
pdmini_sag_hold
(
pdmini_t
*d);
78
79
#endif
/* PDMINI_INT_H */
pdmini_start
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
pdmini_under_line
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
pdmini_sag_hold
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
pdmini_target_mv
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
pdmini_finish
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
pdmini_read1
void pdmini_read1(pdmini_t *d, uint32_t now, uint8_t cmd)
Starts the one-byte read cmd.
Definition
pdmini.c:155
pdmini.h
The WeAct PD Power Mini V1 Buck on its UART: the codec and a driver that talks to it one transaction ...
pdmini_t
Driver state: what is asked, what is known, and the transaction under way.
Definition
pdmini.h:290
protocols
pdmini
pdmini_int.h
Generated by
1.18.0