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.
| 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
|
||||||||||||||||
| 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 |
|
||||||||||||||||
| NEO_CFG_LBCC_SETUP_BITFIELD | Sets options for LBCC network | See Notes. |
|
||||||||||||||||
| NEO_CFG_LBCC_NDRC | LBCC Network Driver and Receiver Control Byte | See Notes. |
|
||||||||||||||||
| 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 |
Examples
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
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