2 * Set the {2} for the specified serial port.
4 * @param port Pointer to port structure.
7 * @return SP_OK upon success, a negative error code otherwise.
9 enum sp_return sp_set_{0}(struct sp_port *port, {1} {0});
12 * Get the {2} from a port configuration.
14 * The user should allocate a variable of type {1} and pass a pointer to this
15 * to receive the result.
17 * @param config Pointer to configuration structure.
18 * @param {0}_ptr Pointer to variable to store result.
20 * @return SP_OK upon success, a negative error code otherwise.
22 enum sp_return sp_get_config_{0}(const struct sp_port_config *config, {1} *{0}_ptr);
25 * Set the {2} in a port configuration.
27 * @param config Pointer to configuration structure.
28 * @param {0} {3}, or -1 to retain current setting.
30 * @return SP_OK upon success, a negative error code otherwise.
32 enum sp_return sp_set_config_{0}(struct sp_port_config *config, {1} {0});