+ Sets the baud rate for the specified serial port.
+
+ Parameters:
+
+ port: Pointer to port structure.
+ baud: Baud rate in bits per second.
+
+ Returns: SP_OK on success, SP_ERR_FAIL on failure, or SP_ERR_ARG
+ for invalid arguments.
+
+int sp_set_bits(struct sp_port *port, int bits)
+
+ Sets the number of data bits for the specified serial port.
+
+ Parameters:
+
+ port: Pointer to port structure.
+ bits: Number of data bits to use. Valid values are 5 to 8.
+
+ Returns: SP_OK on success, SP_ERR_FAIL on failure, or SP_ERR_ARG
+ for invalid arguments.
+
+int sp_set_parity(struct sp_port *port, int parity)
+
+ Sets the parity for the specified serial port.
+
+ Parameters:
+
+ port: Pointer to port structure.
+ parity: Parity setting to use.
+ (SP_PARITY_NONE, SP_PARITY_EVEN or SP_PARITY_ODD)
+
+ Returns: SP_OK on success, SP_ERR_FAIL on failure, or SP_ERR_ARG
+ for invalid arguments.
+
+int sp_set_stopbits(struct sp_port *port, int stopbits)
+
+ Sets the number of stop bits for the specified port.
+
+ Parameters:
+
+ port: Pointer to port structure.
+ stopbits: Number of stop bits to use (1 or 2).
+
+ Returns: SP_OK on success, SP_ERR_FAIL on failure, or SP_ERR_ARG
+ for invalid arguments.
+
+int sp_set_flowcontrol(struct sp_port *port, int flowcontrol)
+
+ Sets the flow control type for the specified serial port.
+
+ This function is a wrapper that sets the RTS, CTS, DTR, DSR and
+ XON/XOFF settings as necessary for the specified flow control
+ type. For more fine-grained control of these settings, use their
+ individual configuration functions or the sp_set_config() function.