Back to Sealevel      

Global Types and Enumerations.

Listed here are the types, enumerations, and definitions used throughout the SeaMAX library.

SeaMAX Enumerations

Baudrates

enum
{
    SM_BAUD_INVALID     = 0,
    SM_BAUD_1200        = 1,
    SM_BAUD_2400        = 2,
    SM_BAUD_4800        = 3,
    SM_BAUD_9600        = 4,
    SM_BAUD_14400       = 5,
    SM_BAUD_19200       = 6,
    SM_BAUD_28800       = 7,
    SM_BAUD_38400       = 8,
    SM_BAUD_57600       = 9,
    SM_BAUD_115200      = 10
};

Databits

enum
{
    SM_DATABITS_5   = 5,
    SM_DATABITS_6   = 6,
    SM_DATABITS_7   = 7,
    SM_DATABITS_8   = 8
};

Parity

enum 
{
    SM_PARITY_NONE      = 0,
    SM_PARITY_ODD       = 1,
    SM_PARITY_EVEN      = 2,
    SM_PARITY_MARK      = 3,
    SM_PARITY_SPACE     = 4
};

Stopbits

enum 
{ 
    SM_STOPBITS_1       = 0,
    SM_STOPBITS_1_5     = 1, 
    SM_STOPBITS_2       = 2
};

Communications Type

enum 
{ 
    SM_COMTYPE_RS485        = 0, 
    SM_COMTYPE_ETHERNET     = 1, 
    SM_COMTYPE_USB          = 2, 
    SM_COMTYPE_RS232        = 3,
    SM_COMTYPE_EXPANSION    = 4, 
    SM_COMTYPE_RS422        = 5,
    SM_COMTYPE_WIRELESS     = 6
};

Analog to Digital Voltage Reference

enum
{
    ANALOG          = 0,
    GROUND          = 1,
    AD_REFERENCE    = 2,
    DA_CHANNEL_1    = 4,
    DA_CHANNEL_2    = 8
};

Analog to Digital Channel Modes

enum
{
    SINGLE_ENDED    = 0,
    DIFFERENTIAL    = 1,
    CURRENT_LOOP    = 2
};

Channel Range Values

enum
{
    ZERO_TO_FIVE    = 0,
    PLUS_MINUS_FIVE = 1,
    ZERO_TO_TEN     = 2,
    PLUS_MINUS_TEN  = 3
};

SeaMAX Ethernet Enumerations

Network Types

enum
{
    NETWORK_INFRASTRUCTURE  = 0,
    NETWORK_ADHOC           = 1
};

Security Type

enum
{
    SECURITY_NONE                       = 0,
    SECURITY_WEP_OPEN_64                = 1,
    SECURITY_WEP_SHARED_64              = 2,
    SECURITY_WEP_OPEN_128               = 3,
    SECURITY_WEP_SHARED_128             = 4,
    SECURITY_WPA_TKIP                   = 5,
    SECURITY_WPA2_AES                   = 6,

    SECURITY_UNKNOWN                    = 0xFF
};

Key Type

enum
{
    HEX_KEY             = 0,
    PASSPHRASE_KEY      = 1
    
};
 
 
Generated on 18 Sep 2007.