// Autogenerated C header file for Serial
#ifndef _JACDAC_SPEC_SERIAL_H
#define _JACDAC_SPEC_SERIAL_H 1

#define JD_SERVICE_CLASS_SERIAL  0x11bae5c4

// enum ParityType (uint8_t)
#define JD_SERIAL_PARITY_TYPE_NONE 0x0
#define JD_SERIAL_PARITY_TYPE_EVEN 0x1
#define JD_SERIAL_PARITY_TYPE_ODD 0x2

/**
 * Read-write bool (uint8_t). Indicates if the serial connection is active.
 */
#define JD_SERIAL_REG_CONNECTED JD_REG_INTENSITY

/**
 * Read-only string (bytes). User-friendly name of the connection.
 */
#define JD_SERIAL_REG_CONNECTION_NAME 0x181

/**
 * Read-write baud uint32_t. A positive, non-zero value indicating the baud rate at which serial communication is be established.
 */
#define JD_SERIAL_REG_BAUD_RATE 0x80

/**
 * Read-write uint8_t. The number of data bits per frame. Either 7 or 8.
 */
#define JD_SERIAL_REG_DATA_BITS 0x81

/**
 * Read-write # uint8_t. The number of stop bits at the end of a frame. Either 1 or 2.
 */
#define JD_SERIAL_REG_STOP_BITS 0x82

/**
 * Read-write ParityType (uint8_t). The parity mode.
 */
#define JD_SERIAL_REG_PARITY_MODE 0x83

/**
 * Read-write # uint8_t. A positive, non-zero value indicating the size of the read and write buffers that should be created.
 */
#define JD_SERIAL_REG_BUFFER_SIZE 0x84

/**
 * Argument: data bytes. Send a buffer of data over the serial transport.
 */
#define JD_SERIAL_CMD_SEND 0x80

/**
 * Argument: data bytes. Raised when a buffer of data is received.
 */
#define JD_SERIAL_CMD_RECEIVED 0x80

#endif
