Configuration Array - intrepidcs API
Parameters  - Remarks - C/C++ example - VB example

Use to read and change device settings on a neoVI Blue or ValueCAN with the GetConfiguration and SendConfiguration.

Parameters

Name Description Valid Range Notes
NEO_CFG_MPIC_GENIO_SETUP Controls the IO mode and initial value of pins MISC1 and MISC2 See Notes.

Bitfield for General IO

7 6 5 4 3 2 1 0
X X Misc2 Output Default Value

0=off

1=0n

Misc1 Output Default Value

0=off

1=0n

X X MISC 2 Data Direction

0=Output

1=Input

MISC 1 Data Direction 

0=Output

1=Input

NEO_CFG_MPIC_HS_CAN_CNF1,
NEO_CFG_MPIC_MS_CAN_CNF1,
NEO_CFG_MPIC_SW_CAN_CNF1,
NEO_CFG_MPIC_LSFT_CAN_CNF1
CAN Controller Configuration Register 1  n/a None.
NEO_CFG_MPIC_HS_CAN_CNF2,
NEO_CFG_MPIC_MS_CAN_CNF2,
NEO_CFG_MPIC_SW_CAN_CNF2,
NEO_CFG_MPIC_LSFT_CAN_CNF2
CAN Controller Configuration Register 2 n/a None.
NEO_CFG_MPIC_HS_CAN_CNF3,
NEO_CFG_MPIC_MS_CAN_CNF3,
NEO_CFG_MPIC_SW_CAN_CNF3,
NEO_CFG_MPIC_LSFT_CAN_CNF3
CAN Controller Configuration Register 3 n/a None.
NEO_CFG_MPIC_HS_CAN_MODE,
NEO_CFG_MPIC_MS_CAN_MODE,
NEO_CFG_MPIC_SW_CAN_MODE,
NEO_CFG_MPIC_LSFT_CAN_MODE
Sets the mode of CAN controller See Notes
Mode Value
Loopback 4
ListenOnly 2
Normal 1
NEO_CFG_LBCC_SETUP_BITFIELD Sets options for LBCC network See Notes.  
7 6 5 4 3 2 1 0
X X X X X X Dynamically Adjust Address

0=No

1=Yes

Bit Rate

0 = 41.6K

1=83.3Kbps

 

 

NEO_CFG_LBCC_NDRC LBCC Network Driver and Receiver Control Byte See Notes.
7 6 5 4 3 2 1 0
1 0 1 Tx Driver B Enable Tx Driver A Enable Rx B Enable Rx Diff Enable Rx A Enable
NEO_CFG_LBCC_NODE_ADDRESS Node Address of the LBCC Ford SCP Controller 0-254 None.
NEO_CFG_LBCC_FREAD_D1 Functional Address of Function Read Data 1 0-254 : 255 = Disabled None.
NEO_CFG_LBCC_FREAD_D2 Functional Address of Function Read Data 1 0-254 : 255 = Disabled None.
NEO_CFG_LBCC_NUM_LU1_ENTERIES Number of entries in lookup table 1 0-31 Number of valid entries in table 1. 
NEO_CFG_LBCC_NUM_LU1_START [1-31] First lookup entry n/a Second lookup entry is NEO_CFG_LBCC_NUM_LU1_START + 1, Third is NEO_CFG_LBCC_NUM_LU1_START + 2
NEO_CFG_LED_SETTTING  
NEO_CFG_J1708_RXIFS Inter-frame separation in Ms for J1708 Reception    
ISO_RX_IFS_TIME_EEADDR  (ISO)
ISO_TX_IFS_TIME_EEADDR  (ISO)
ISO_TX_INTERBYTE_TIME_EEADDR  (ISO)
EE_DATA_NUMBYTES_IN_TRIG  (ISO)
EE_DATA_TRIG_ENABLE_1 (ISO)
EE_DATA_TRIG_ENABLE_2 (ISO)
EE_DATA_TRIG_1_NUM_BYTES (ISO)
EE_DATA_INIT_SETTING1  (ISO)
EE_DATA_INIT_NUM_STEPS  (ISO)
EE_DATA_INIT_STEP1_CNT  (ISO)
EE_DATA_INIT_STEP1_IO  (ISO)
EE_DATA_INIT_STEP2_CNT  (ISO)
EE_DATA_INIT_STEP2_IO  (ISO)
EE_DATA_DEVIO_TYPE 
EE_DATA_DEVIO_INTERVAL 
EE_DATA_ADCON1 
EE_DATA_DIN_CHANGE_MASK
EE_DATA_MISC_TRIS 
EE_DATA_MISC_INIT 
EE_DATA_LED_DURATION_TYPE 
EE_DATA_LED_TYPE 
EE_DATA_ISO_MODE 
EE_DATA_LIN_TMAX_8
EE_DATA_LIN_TMAX_4_DIFF 
EE_DATA_LIN_TMAX_2_DIFF 
EE_DATA_RS232_SPBRG
EE_DATA_RS232_SYNC 

Remarks

 


Examples

Visual Basic Example

Private m_hObject As Long    '// Declared at form level

Dim lResult As Long                '// Used to store the return value
Dim bNetworkIDs(0 To 16) As Byte   '// Array of network IDs passed to the driver
Dim bSCPIDs(0 To 255) As Byte      '// Array of SCP functional IDs passed to the driver
Dim lCount As Long                 '// General Purpose Counter Variable


'// Initialize the network id array
For lCount = 0 To 16
    bNetworkIDs(lCount) = lCount
Next lCount

'// open the first neoVI on USB
lResult = icsneoOpenPort(1, NEOVI_COMMTYPE_USB_BULK, INTREPIDCS_DRIVER_STANDARD, _
bNetworkIDs(0), bSCPIDs(0), m_hObject)


'// Test the returned result
If CBool(lResult) Then
    MsgBox "Port Opened Successfully"
Else
    MsgBox "Problem Opening Port"
End If

C/C++ Example

unsigned char bNetworkID[16];     // array of network ids
unsigned char bSCPIDs[255];     // array of SCP functional ids
int hObject = 0;         // holds a handle to the neoVI object
unsigned long lCount;            // counter variable

// initialize the networkid array
for (lCount=0;lCount<16;lCount++)
    bNetworkID[lCount] = lCount;

// open the first neoVI on USB
if (!m_bPortOpen) // only if not already opened 
{
    lResult = icsneoOpenPort(1 ,NEOVI_COMMTYPE_USB_BULK, INTREPIDCS_DRIVER_STANDARD,bNetworkID, bSCPIDs, &hObject);
    if (lResult == 0)
        MessageBox(hWnd,TEXT("Problem Opening Port"),TEXT("neoVI Example"),0);
    else
        MessageBox(hWnd,TEXT("Port Opened Successfully"),TEXT("neoVI Example"),0);
}

 

intrepidcs API Documentation - (C) Copyright 2000-2012 Intrepid Control Systems, Inc.  (www.intrepidcs.com)

Last Updated : Thursday, September 18, 2008