www.beck-ipc.com

BtLib V2.02 - Helping types


Helping type

The enums contain possible values for different parameters in btlib functions.

  • btStoreInStartupDatabase
  • btDiscoverabilityMode
  • btConnectabilityMode
  • btPairingMode
  • btSecurityMode
  • btInquiryType
  • btRolePolicy
  • btMultipointConfiguration
  • btRoleAndProfile
  • btBaudRate
  • btDataBits
  • btStopBits
  • btParity
  • btFlowControl
  • btSerialInterfaceType
  • btPowerSaveMode
  • btDtrConfig
  • btDsrConfig
  • btMajorDeviceClass

  • btStoreInStartupDatabase

    enum btStoreInStartupDatabase 
    {
        BT_VALID_FOR_CURRENT_POWER_CYCLE,
        BT_STORE_IN_STARTUP_BT01_DATABASE,
    };
    
    btStoreInStartupDatabase

    Members

    BT_VALID_FOR_CURRENT_POWER_CYCLE
    0 (The setting will only be valid for the current power cycle.)
    BT_STORE_IN_STARTUP_BT01_DATABASE
    1 (The BT0x will remember the setting between power cycles.)

    btDiscoverabilityMode

    enum btDiscoverabilityMode 
    {
        BT_GAP_NON_DISCOVERABLE_MODE,
        BT_GAP_GENERAL_DISCOVERABLE_MODE,
    };
    
    btDiscoverabilityMode

    Members

    BT_GAP_NON_DISCOVERABLE_MODE
    1
    BT_GAP_GENERAL_DISCOVERABLE_MODE
    3

    btConnectabilityMode

    enum btConnectabilityMode 
    {
        BT_AP_NON_CONNECTABLE_MODE,
        BT_GAP_CONNECTABLE_MODE,
    };
    
    btConnectabilityMode

    Members

    BT_AP_NON_CONNECTABLE_MODE
    1
    BT_GAP_CONNECTABLE_MODE
    2

    btPairingMode

    enum btPairingMode 
    {
        BT_GAP_NON_PAIRING_MODE,
        BT_GAP_PAIRING_MODE,
    };
    
    btPairingMode

    Members

    BT_GAP_NON_PAIRING_MODE
    1
    BT_GAP_PAIRING_MODE
    2

    btSecurityMode

    enum btSecurityMode 
    {
        BT_LL_AUTH_AND_ENC_DISABLED,
        BT_LL_AUTH_AND_ENC_ENABLED,
        BT_LL_AUTH_AND_ENC_ENABLED_3,
        BT_LL_AUTH_AND_ENC_ENABLED_4,
        BT_LL_AUTH_AND_ENC_ENABLED_5,
    };
    
    btSecurityMode

    Members

    BT_LL_AUTH_AND_ENC_DISABLED
    1
    BT_LL_AUTH_AND_ENC_ENABLED
    2
    BT_LL_AUTH_AND_ENC_ENABLED_3
    3
    BT_LL_AUTH_AND_ENC_ENABLED_4
    4
    BT_LL_AUTH_AND_ENC_ENABLED_5
    5

    btInquiryType

    enum btInquiryType 
    {
        BT_LIMITED_INQUIRY,
        BT_GENERAL_INQUIRY,
        BT_LIMITED_INQUIRY_EXT,
        BT_GENERAL_INQUIRY_EXT,
    };
    
    btInquiryType

    Members

    BT_LIMITED_INQUIRY
    1
    BT_GENERAL_INQUIRY
    2
    BT_LIMITED_INQUIRY_EXT
    3
    BT_GENERAL_INQUIRY_EXT
    4

    btRolePolicy

    enum btRolePolicy 
    {
        BT_TRY_TO_BECOME_MASTER,
        BT_LET_CONNECTING_DEVICE_SELECT,
    };
    
    btRolePolicy

    Members

    BT_TRY_TO_BECOME_MASTER
    0
    BT_LET_CONNECTING_DEVICE_SELECT
    1

    btMultipointConfiguration

    enum btMultipointConfiguration 
    {
        BT_MULTIPOINT_DISABLED,
        BT_MULTIPOINT_ENABLED,
    };
    
    btMultipointConfiguration

    Members

    BT_MULTIPOINT_DISABLED
    0
    BT_MULTIPOINT_ENABLED
    1

    btRoleAndProfile

    enum btRoleAndProfile 
    {
        BT_SERIAL_PORT_PROFILE,
        BT_DIAL_UP_NETWORKING_PROFILE,
        BT_SPP_AND_DUNP,
        BT_NO_PROFILE,
    };
    
    btRoleAndProfile

    Members

    BT_SERIAL_PORT_PROFILE
    0
    BT_DIAL_UP_NETWORKING_PROFILE
    1
    BT_SPP_AND_DUNP
    3
    BT_NO_PROFILE
    255

    btBaudRate

    enum btBaudRate 
    {
        BT_BR_300,
        BT_BR_1200,
        BT_BR_2400,
        BT_BR_4800,
        BT_BR_9600,
        BT_BR_19200,
        BT_BR_38400,
        BT_BR_57600,
        BT_BR_115200,
        BT_BR_230400,
        BT_BR_460800,
        BT_NS_BR_750000,
    };
    
    btBaudRate

    Members

    BT_BR_300
    1 (BT01/02 only)
    BT_BR_1200
    2
    BT_BR_2400
    3
    BT_BR_4800
    4
    BT_BR_9600
    5
    BT_BR_19200
    6
    BT_BR_38400
    7
    BT_BR_57600
    8
    BT_BR_115200
    9
    BT_BR_230400
    10
    BT_BR_460800
    11
    BT_NS_BR_750000
    12

    btDataBits

    enum btDataBits 
    {
        BT_DATA_BITS_8,
        BT_DATA_BITS_7,
    };
    
    btDataBits

    Members

    BT_DATA_BITS_8
    1
    BT_DATA_BITS_7
    2 (BT01/02 only)

    btStopBits

    enum btStopBits 
    {
        BT_STOPBITS_1,
        BT_STOPBITS_2,
    };
    
    btStopBits

    Members

    BT_STOPBITS_1
    1
    BT_STOPBITS_2
    2

    btParity

    enum btParity 
    {
        BT_NO_PARITY,
        BT_ODD_PARITY,
        BT_EVEN_PARITY,
    };
    
    btParity

    Members

    BT_NO_PARITY
    1
    BT_ODD_PARITY
    2
    BT_EVEN_PARITY
    3

    btFlowControl

    enum btFlowControl 
    {
        BT_CTS_RTS,
        BT_NO_CTS_RTS,
    };
    
    btFlowControl

    Members

    BT_CTS_RTS
    1
    BT_NO_CTS_RTS
    2

    btSerialInterfaceType

    enum btSerialInterfaceType 
    {
        BT_RS232,
        BT_RS422,
        BT_RS485,
    };
    
    btSerialInterfaceType

    Members

    BT_RS232
    1
    BT_RS422
    2
    BT_RS485
    3

    btPowerSaveMode

    enum btPowerSaveMode 
    {
        BT_ALLOW_ONLY_ONLINE_MODE,
        BT_ALLOW_SLEEP_MODE,
        BT_ALLOW_SLEEP_AND_STOP_MODE,
    };
    
    btPowerSaveMode

    Members

    BT_ALLOW_ONLY_ONLINE_MODE
    1
    BT_ALLOW_SLEEP_MODE
    2
    BT_ALLOW_SLEEP_AND_STOP_MODE
    3

    btDtrConfig

    enum btDtrConfig 
    {
        BT_ACTIVE_AFTER_STARTUP,
        BT_ACTIVE_ON_BLUETOOTH_CONNECTION,
    };
    
    btDtrConfig

    Members

    BT_ACTIVE_AFTER_STARTUP
    1
    BT_ACTIVE_ON_BLUETOOTH_CONNECTION
    2

    btDsrConfig

    enum btDsrConfig 
    {
        BT_DISABLE,
        BT_USE_FOR_CONNECTION_CONTROL,
    };
    
    btDsrConfig

    Members

    BT_DISABLE
    1
    BT_USE_FOR_CONNECTION_CONTROL
    2 // DSR mode 2 cannot be configured if module is configured for stop mode

    btMajorDeviceClass

    enum btMajorDeviceClass 
    {
        BT_MISCELLANEOUS,
        BT_COMPUTER,
        BT_PHONE,
        BT_LAN,
        BT_AUDIO_VIDEO,
        BT_PERIPHERAL,
        BT_IMAGING,
        BT_UNCATEGORIZED,
    };
    
    btMajorDeviceClass

    Members

    BT_MISCELLANEOUS
    0
    BT_COMPUTER
    256 (desktop, notebook, PDA, etc)
    BT_PHONE
    512 (cellular, cordless, modem, etc)
    BT_LAN
    768 LAN/Network Access point
    BT_AUDIO_VIDEO
    1024 (headset, speaker, stereo, video display, VCR)
    BT_PERIPHERAL
    1280 (mouse, joystick, keyboards)
    BT_IMAGING
    1536 (printing, scanner, camera, etc)
    BT_UNCATEGORIZED
    7936 Uncategorized, device code not specified



    End of document