|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_MasterReset (int16_t swDevice) |
| Performs Master Reset on the Channel.
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_GetDeviceReady (int16_t swDevice, bool_t *ready) |
| Reads the ready status from bit 15 of the Master Status and Reset Register (0x1).
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_SetChannelConfig (int16_t swDevice, uint32_t value) |
| Set the channel configuration register.
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_GetChannelConfig (int16_t swDevice, uint32_t *outvalue) |
| Read the channel configuration register.
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_SetChannelControl (int16_t swDevice, uint32_t value) |
| Set the channel control register.
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_GetChannelControl (int16_t swDevice, uint32_t *outvalue) |
| Get the channel control register.
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI | naibrd_1760_CoreWriteEnable (int16_t swDevice, bool_t enable) |
| Enable or disable writes to 1760 core registers.
|
|
NAIBRDFUNC naibrd_1760_t NAIAPI naibrd_1760_GetChannelControl |
( |
int16_t | swDevice, |
|
|
uint32_t * | outvalue ) |
Get the channel control register.
Bit 31-6 Don't Care
Bit 5 TEST - Test Enable Input. The host asserts this pin to perform RAM self-test and loop-back tests.
Bit 4 RT1SSF - RT Subsystem Fail Input, Active High. When this input is high, the selected RT1 sets the
Subsystem Fail flag in its transmit status word. This input is logically-ORed with the SSYSF bit in
the terminal's RT1 1760 Status Word Bits register.
Bit 3 MTRUN - Monitor Run/Stop Input, Active High. This input starts/stops MT data recording. Upon going
low, the MT stops when the current message is completed.
Bit 2 BCTRIG - BC Trigger Input, Active High. Used in conjunction with certain BC instructions.
Bit 1 TXINHB - Transmit inhibit input for Bus B, Active High. This input is logically OR'ed with the pair
of corresponding bits in the Master Configuration Register to enable or inhibit transmit on Bus B,
affecting behavior for all enabled 1760 devices.
Bit 0 TXINHA - Transmit inhibit input for Bus A, Active High. This input is logically OR'ed with the pair
of corresponding bits in the Master Configuration Register to enable or inhibit transmit on Bus A,
affecting behavior for all enabled 1760 devices.
- Parameters
-
swDevice | : (Input) Logical Device Number (0-31). |
outvalue | : (Output) 32-bit value to set in the register. |
- Returns
- NAI_SUCCESS when function is completed successfully
- NAI_ERROR_INVALID_VALUE when invalid swDevice is specified.
- NAI_ERROR_NOT_SUPPORTED when function is not supported.
NAIBRDFUNC naibrd_1760_t NAIAPI naibrd_1760_SetChannelControl |
( |
int16_t | swDevice, |
|
|
uint32_t | value ) |
Set the channel control register.
Bit 31-6 Don't Care
Bit 5 TEST - Test Enable Input. The host asserts this pin to perform RAM self-test and loop-back tests.
Bit 4 RT1SSF - RT Subsystem Fail Input, Active High. When this input is high, the selected RT1 sets the
Subsystem Fail flag in its transmit status word. This input is logically-ORed with the SSYSF bit in
the terminal's RT1 1760 Status Word Bits register.
Bit 3 MTRUN - Monitor Run/Stop Input, Active High. This input starts/stops MT data recording. Upon going
low, the MT stops when the current message is completed.
Bit 2 BCTRIG - BC Trigger Input, Active High. Used in conjunction with certain BC instructions.
Bit 1 TXINHB - Transmit inhibit input for Bus B, Active High. This input is logically OR'ed with the pair
of corresponding bits in the Master Configuration Register to enable or inhibit transmit on Bus B,
affecting behavior for all enabled 1760 devices.
Bit 0 TXINHA - Transmit inhibit input for Bus A, Active High. This input is logically OR'ed with the pair
of corresponding bits in the Master Configuration Register to enable or inhibit transmit on Bus A,
affecting behavior for all enabled 1760 devices.
- Parameters
-
swDevice | : (Input) Logical Device Number (0-31). |
value | : (Input) 32-bit value to set in the register. |
- Returns
- NAI_SUCCESS when function is completed successfully
- NAI_ERROR_INVALID_VALUE when invalid swDevice is specified.
- NAI_ERROR_NOT_SUPPORTED when function is not supported.