]>
Commit | Line | Data |
---|---|---|
35ff018b ML |
1 | /** |
2 | * Set the {2} for the specified serial port. | |
3 | * | |
4 | * @param port Pointer to port structure. | |
5 | * @param {0} {3}. | |
6 | * | |
7 | * @return SP_OK upon success, a negative error code otherwise. | |
8 | */ | |
9 | enum sp_return sp_set_{0}(struct sp_port *port, {1} {0}); | |
10 | ||
11 | /** | |
12 | * Get the {2} from a port configuration. | |
13 | * | |
14 | * The user should allocate a variable of type {1} and pass a pointer to this | |
15 | * to receive the result. | |
16 | * | |
17 | * @param config Pointer to configuration structure. | |
18 | * @param {0}_ptr Pointer to variable to store result. | |
19 | * | |
20 | * @return SP_OK upon success, a negative error code otherwise. | |
21 | */ | |
22 | enum sp_return sp_get_config_{0}(const struct sp_port_config *config, {1} *{0}_ptr); | |
23 | ||
24 | /** | |
25 | * Set the {2} in a port configuration. | |
26 | * | |
27 | * @param config Pointer to configuration structure. | |
28 | * @param {0} {3}, or -1 to retain current setting. | |
29 | * | |
30 | * @return SP_OK upon success, a negative error code otherwise. | |
31 | */ | |
32 | enum sp_return sp_set_config_{0}(struct sp_port_config *config, {1} {0}); |