|
NAIBRDFUNC int32_t NAIAPI | naibrd_PWM_GetChannelCount (uint32_t modid) |
| Returns the number of channels for the specified PWM Module ID.
|
|
NAIBRDFUNC int32_t NAIAPI | naibrd_PWM_GetAdcChannelCount (uint32_t modid) |
| Returns the number of ADC channels for the specified PWM Module ID.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetCurrent (int32_t cardIndex, int32_t module, int32_t channel, float32_t current_mA) |
| Sets the PWM Current Command. The Current value must between -8.5 and +8.496 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetCurrent (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outcurrent_mA) |
| Retrieves the PWM Current Command. The Current value must between -8.5 and +8.496 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetVoltage (int32_t cardIndex, int32_t module, int32_t channel, float32_t voltage) |
| Sets the PWM Voltage Command. The Voltage value must between -80.0 and +79.9610 Volts.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetVoltage (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outvoltage) |
| Retrieves the PWM Voltage Command. The Voltage value must between -80.0 and +79.9610 Volts.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetDriveEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
| Enables or disables the PWM Drive.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDriveEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outenable) |
| Retrieves the PWM Drive Enable state.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_ResetDrive (int32_t cardIndex, int32_t module, int32_t channel) |
| This register is used to clear all fail conditions related to the channel output in the STATUS REGISTER.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDACOutput (int32_t cardIndex, int32_t module, int32_t dacChannel, float32_t *p_outvoltage) |
| Retrieves the DAC Output. The DAC Output Voltage is between -10.0 and +9.995 Volts.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetADCInput (int32_t cardIndex, int32_t module, int32_t adcChannel, float32_t *p_outvoltage) |
| Retrieves the ADC Input. The Voltage value must between -10.24 and +10.24 Volts.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetADCEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
| Sets the enable or disable state of the ADC input test word for either transmission over the RS␂422 SDLC interface or injection into the PWM module channel control loop summing junctions. Destination of the ADC input is determined in the ADC_INPUT_DESTINATION_SELECT register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetADCEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outenable) |
| Retrieves the ADC Input Enable state. This is used to enable or disable the ADC input test word for either transmission over the RS␂422 SDLC interface or injection into the PWM module channel control loop summing junctions. Destination of the ADC input is determined in the ADC_INPUT_DESTINATION_SELECT register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetADCSource (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_adc_source_t source) |
| Sets the ADC Input Source. This is used to select the destination for the ADC Test Input Word. The available destinations are either the RS-422 SDLC interface or the summing junctions of the PWM Channel Loop Controllers. The purpose is to allow Lab analysis of the PWM loop controller for verification purposes of the loop characteristics.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetADCSource (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_adc_source_t *p_outsource) |
| Retrieves the ADC Input Source. This is used to select the destination for the ADC Test Input Word. The available destinations are either the RS-422 SDLC interface or the summing junctions of the PWM Channel Loop Controllers. The purpose is to allow Lab analysis of the PWM loop controller for verification purposes of the loop characteristics.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredCurrent (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outcurrent_mA) |
| Retrieves the PWM Channel's measured motor current value. Overflow or underflow values shall be clamped at the maximum positive or negative values. . The Current value must between -10.0 and +9.9995 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredVoltage (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outvoltage) |
| Retrieves the PWM Channel's motor voltage measurement. Overflow or underflow values shall be clamped at the maximum positive or negative values. The Voltage value must between -80.0 and +79.9610 Volts.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredInputVoltage (int32_t cardIndex, int32_t module, float32_t *p_outvoltage) |
| Retrieves the PWM's Input Voltage Measurement of the +65V on-board supply.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredTemperature (int32_t cardIndex, int32_t module, int32_t channel, int32_t *p_outtemp_C) |
| Retrieves the PWM Channel's Drive Temperature Measurement.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredPSVoltage (int32_t cardIndex, int32_t module, float32_t *p_outvoltage) |
| Retrieves the PWM Power Suppy's Voltage Measurement. The Voltage value must between -80.0 and +79.9610 Volts. Overflow or underflow values shall be clamped at the maximum positive or negative values.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredPSCurrent (int32_t cardIndex, int32_t module, float32_t *p_outcurrent) |
| Retrieves the PWM on-board Power Supply's Current Measurement. The Current value must between 0.0 and 65.984 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetMeasuredPSTemperature (int32_t cardIndex, int32_t module, int32_t *p_outtemp_C) |
| Retrieves the PWM on-board Power Supply's Temperature Measurement. Range is -32768..32767 degrees C.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SoftReset (int32_t cardIndex, int32_t module) |
| Resets the PWM and PS modules. Upon receiving the soft reset command, both the PWM and PS re-initializes to the power-on state. This routine will write a "1" and wait 1 msec before writing a "0" to initiate the reset. Depending on configuration, the reboot can take up to 3 seconds.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetBattlefieldOverrideEnable (int32_t cardIndex, int32_t module, bool_t enable) |
| Enables or disables the Battlefield Override which is used to lockout all fail-safe features within the PWM and PS. When enabled, no intervention of the protection circuitry to shut the drive off to either PWM channel is allowed (except for Watchdog Timer), however the status of any protection logic shall be updated.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetBattlefieldOverrideEnable (int32_t cardIndex, int32_t module, bool_t *p_outenable) |
| Retrieves the Enable state for the Battlefield Override which is used to lockout all fail-safe features within the PWM and PS. When enabled, no intervention of the protection circuitry to shut the drive off to either PWM channel is allowed (except for Watchdog Timer), however the status of any protection logic shall be updated.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetPSOverTempOverrideEnable (int32_t cardIndex, int32_t module, bool_t enable) |
| Enables or disables the Power Supply Over-temperature Shutdown Override.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetPSOverTempOverrideEnable (int32_t cardIndex, int32_t module, bool_t *p_outenable) |
| Retrieves the Enable state for the Power Supply Over-temperature Shutdown Override.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_IsBoardReady (int32_t cardIndex, int32_t module) |
| Retrieves the PWM Board Ready Status.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetStatus (int32_t cardIndex, int32_t module, nai_pwm_status_t *p_outstatus) |
| Retrieves the PWM Real-tinme Status.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetStatusLatched (int32_t cardIndex, int32_t module, nai_pwm_status_t *p_outstatus) |
| Retrieves the PWM Latched Status.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_ClearStatus (int32_t cardIndex, int32_t module) |
| Clears the PWM's Latched Status.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDriveMeasureCurrent (int32_t cardIndex, int32_t module, int32_t channel, int32_t drive, float32_t *p_outcurrent_mA) |
| Retrieves the PWM Channel's measured motor current value for the specified drive. Overflow or underflow values shall be clamped at the maximum positive or negative values. . The Current value must between -10.0 and +9.9995 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDriveMeasureVoltage (int32_t cardIndex, int32_t module, int32_t channel, int32_t drive, float32_t *p_outvoltage) |
| Retrieves the PWM Channel's measured motor voltage value for the specified drive. Overflow or underflow values shall be clamped at the maximum positive or negative values. The Voltage value must between -80.0 and +79.9610 Volts.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetPSCurrentMeasure (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outpscurrent) |
| Retrieves the PWM on-board Power Supply's Current Measurement. The Current value must between 0.0 and 65.984 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetPSVoltageMeasure (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outpsvoltage) |
| Retrieves the PWM Power Suppy's Voltage Measurement. The Voltage value must between -80.0 and +79.9610 Volts. Overflow or underflow values shall be clamped at the maximum positive or negative values.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetInputPSEnable (int32_t cardIndex, int32_t module, bool_t enable) |
| Enables or disables the PWM Input PS.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetInputPSEnable (int32_t cardIndex, int32_t module, bool_t *p_outenable) |
| Retrieves the PWM Input PS Enable state.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetHallState (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_hall_state_t *p_outhallState) |
| Retrieves the state of the PWM hall effect sensor.
|
|
NAIBRDFUNC nai_status_t | naibrd_PWM_SetDutyLimit (int32_t cardIndex, int32_t module, int32_t channel, float32_t dutyLimitPercent) |
| Sets the output stage's duty cycle. Range is 0.0 to 50.0.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDutyLimit (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outdutyLimitPercent) |
| Retrieves the output stage's duty cycle. Range is 0.0 to 50.0.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetDriveMode (int32_t cardIndex, int32_t module, nai_pwm_drive_mode_t mode) |
| Sets the PWM Drive Mode.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDriveMode (int32_t cardIndex, int32_t module, nai_pwm_drive_mode_t *p_outmode) |
| Retrieves the PWM Drive Mode.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSource (int32_t cardIndex, int32_t module, nai_pwm_source_t source) |
| Sets the PWM Source.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSource (int32_t cardIndex, int32_t module, nai_pwm_source_t *p_outsource) |
| Retrieves the PWM Source.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetCurrentLimit (int32_t cardIndex, int32_t module, int32_t channel, float32_t limit_mA) |
| Sets the Current Limit for the PWM channel. The Current Limit value must between 0 and +9.995 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetCurrentLimit (int32_t cardIndex, int32_t module, int32_t channel, float32_t *p_outlimit_mA) |
| Retrieves the Current Limit for the PWM channel. The Current Limit value must between 0 and +9.995 Amps.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetInputScale (int32_t cardIndex, int32_t module, int32_t channel, int32_t scale) |
| Sets the Input Scale (Kc) for the PWM channel. The Input Scale value must be between -32768 (gain = -1) and 32767 (gain = 1). Setting a negative gain value will result in the polarity reversal of the command.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetInputScale (int32_t cardIndex, int32_t module, int32_t channel, int32_t *p_outscale) |
| Retrieves the Input Scale (Kc) for the PWM channel. The Input Scale value must be between -32768 (gain = -1) and 32767 (gain = 1). A negative gain value will result in the polarity reversal of the command.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetGlobalGain (int32_t cardIndex, int32_t module, int32_t channel, int32_t gain) |
| Sets the Global Gain (Kg) for the PWM channel. The Global Gain value must be between -32768 (gain = -10) and 32767 (gain = 10). Setting a negative gain value will result in the polarity reversal of the error term.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetGlobalGain (int32_t cardIndex, int32_t module, int32_t channel, int32_t *p_outgain) |
| Retrieves the Global Gain (Kg) for the PWM channel. The Global Gain value must be between -32768 (gain = -10) and 32767 (gain = 10). A negative gain value will result in the polarity reversal of the error term.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetIntegralGain (int32_t cardIndex, int32_t module, int32_t channel, int32_t gain) |
| Sets the Integral Gain (Ki) for the PWM channel. The Integral Gain value must be between -32768 (gain = -1) and 32767 (gain = 1). Setting a negative gain value will result in the polarity reversal of the error term.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetIntegralGain (int32_t cardIndex, int32_t module, int32_t channel, int32_t *p_outgain) |
| Retrieves the Integral Gain (Ki) for the PWM channel. The Integral Gain value must be between -32768 (gain = -1) and 32767 (gain = 1). A negative gain value will result in the polarity reversal of the error term.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetProportionalGain (int32_t cardIndex, int32_t module, int32_t channel, int32_t gain) |
| Sets the Proportional Gain (Kp) for the PWM channel. The Proportional Gain value must be between -32768 (gain = -2) and 32767 (gain = 2). Setting a negative gain value will result in the polarity reversal of the error term.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetProportionalGain (int32_t cardIndex, int32_t module, int32_t channel, int32_t *p_outgain) |
| Retrieves the Proportional Gain (Kp) for the PWM channel. The Proportional Gain value must be between -32768 (gain = -1) and 32767 (gain = 1). A negative gain value will result in the polarity reversal of the error term..
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetPITermLimit (int32_t cardIndex, int32_t module, int32_t channel, int32_t limit) |
| Sets the PI Terminal Limit for the PWM channel. The PI Terminal Limit value must be greater than 0 and less than 65536.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetPITermLimit (int32_t cardIndex, int32_t module, int32_t channel, int32_t *p_outlimit) |
| Retrieves the PI Terminal Limit for the PWM channel. The PI Terminal Limit value must be greater than 0 and less than 65536.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSerialRxClockEdge (int32_t cardIndex, int32_t module, nai_pwm_clock_edge_t clockEdge) |
| Sets the receive clock edge used by the PWM RS-422 SDLC serial port. Note, receive and transmit functions will use opposite edges (i.e. Rx Rising Edge, Tx Falling Edge OR Rx Falling Edge, Tx Rising Edge.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSerialRxClockEdge (int32_t cardIndex, int32_t module, nai_pwm_clock_edge_t *p_outclockEdge) |
| Retrieves the receive clock edge used by the PWM RS-422 SDLC serial port. Note, receive and transmit functions will use opposite edges (i.e. Rx Rising Edge, Tx Falling Edge OR Rx Falling Edge, Tx Rising Edge.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetCRCErrorCount (int32_t cardIndex, int32_t module, int32_t *p_outcrcErrorCnt) |
| Retrieves the total RS-422 SDLC Serial Receive Data Frame CRC errors detected. Whenever a CRC error is detected within a received data frame, the error counter is incremented while the "CRC Error Count Disable" register is set to FALSE (0). If the count reaches the maximum value, the counter will stop counting and this register will retain the maximum count value until cleared via setting the "CRC Error Count Disable" register to TRUE (0xFFFF). In other words, the value in this register will not roll back to 0 and continue counting when the maximum count is reached.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDataFrameCount (int32_t cardIndex, int32_t module, int32_t *p_outdataFrameCnt) |
| Retrieves the total RS-422 SDLC Serial Receive Data Frames detected. Whenever Data Frame is detected the counter is incremented while the "Data Frame Count Disable" register is set to FALSE (0). If the count reaches the maximum value, the counter will stop counting and this register will retain the maximum count value until cleared via setting the "Data Frame Count Disable" register to TRUE (0xFFFF). In other words, the value in this register will not roll back to 0 and continue counting when the maximum count is reached.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDataFrameStatus (int32_t cardIndex, int32_t module, uint32_t *p_outstatus) |
| Retrieves the status of the last RS-422 SDLC Serial Data Frame. If a data frame is interrupted for any reason, an error indication shall be written to this register. The register shall retain the status of the last data frame received until another data frame transmission has completed and the new status is available.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetCRCErrorCountDisable (int32_t cardIndex, int32_t module, bool_t disable) |
| Sets the "CRC Error Count Disable" state. When set to FALSE (0), the RS-422 SDLC Serial Receive Data Frame CRC error count is incremented. When set to TRUE (0xFFFF), the RS-422 SDLC Serial Receive Data Frame CRC error count is cleared to zero (0) and the "RS-422 SDLC Serial Receive Data Frame CRC error count" register remains at the value zero until this register is set to FALSE (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetCRCErrorCountDisable (int32_t cardIndex, int32_t module, bool_t *p_outdisable) |
| Retrieves the "CRC Error Count Disable" state. When set to FALSE (0), the RS-422 SDLC Serial Receive Data Frame CRC error count is incremented. When set to TRUE (0xFFFF), the RS-422 SDLC Serial Receive Data Frame CRC error count is cleared to zero (0) and the "RS-422 SDLC Serial Receive Data Frame CRC error count" register remains at the value zero until this register is set to FALSE (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetDataFrameCountDisable (int32_t cardIndex, int32_t module, bool_t disable) |
| Sets the "Data Frame Count Disable" state. When set to FALSE (0), the RS-422 SDLC Serial Receive Data Frame count is incremented. When set to TRUE (0xFFFF), the RS-422 SDLC Serial Receive Data Frame count is cleared to zero (0) and the "RS-422 SDLC Serial Receive Data Frame count" register remains at the value zero until this register is set to FALSE (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDataFrameCountDisable (int32_t cardIndex, int32_t module, bool_t *p_outdisable) |
| Retrieves the "Data Frame Count Disable" state. When set to FALSE (0), the RS-422 SDLC Serial Receive Data Frame count is incremented. When set to TRUE (0xFFFF), the RS-422 SDLC Serial Receive Data Frame count is cleared to zero (0) and the "RS-422 SDLC Serial Receive Data Frame count" register remains at the value zero until this register is set to FALSE (0).
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSerialTxMsgConfig (int32_t cardIndex, int32_t module, nai_pwm_tx_msg_config_t txMsgConfig) |
| Sets the behavior of the last byte of the TX Data Frame. The last byte may represent either, the Test Bits (defined using naibrd_PWM_SetSerialTestBits()) or the following STATUS REGISTER:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSerialTxMsgConfig (int32_t cardIndex, int32_t module, nai_pwm_tx_msg_config_t *p_outtxMsgConfig) |
| Retrieves the behavior of the last byte of the TX Data Frame. The last byte may represent either, the Test Bits (defined using naibrd_PWM_SetSerialTestBits()) or the following STATUS REGISTER:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSerialTestBits (int32_t cardIndex, int32_t module, uint32_t testBits) |
| Sets values to be transmitted by the RS-422 SDLC interface whenever the ADC reading is enabled to be transmitted via the "ADC Input" and "ADC Source" registers. Only the least significant bits (D3-D0) are transmitted.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSerialTestBits (int32_t cardIndex, int32_t module, uint32_t *p_outtestBits) |
| Retrieves values to be transmitted by the RS-422 SDLC interface whenever the ADC reading is enabled to be transmitted via the "ADC Input" and "ADC Source" registers. Only the least significant bits (D3-D0) are transmitted.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSerialTransmitEnable (int32_t cardIndex, int32_t module, bool_t enable) |
| Enables or disables the Serial transmission of a frame after receipt of a valid frame.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSerialTransmitEnable (int32_t cardIndex, int32_t module, bool_t *p_outenable) |
| Retrieves the Enable state for the the Serial transmission of a frame after receipt of a valid frame.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSerialWatchdogTimeout (int32_t cardIndex, int32_t module, float32_t timeout_ms) |
| Sets the Watchdog Timer for Serial communication. This API provides the capability to define the watchdog timeout interval for a SLDC activity monitor. If a valid data frame is not received within the defined interval, the PWM card shall disable both the output channels (regardless of battlefield override state). The Watchdog Timer Value is between 0 and 250 msec.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSerialWatchdogTimeout (int32_t cardIndex, int32_t module, float32_t *p_outtimeout_ms) |
| Retrieves the Watchdog Timer for Serial communication. This API provides the capability to define the watchdog timeout interval for a SLDC activity monitor. If a valid data frame is not received within the defined interval, the PWM card shall disable both the output channels (regardless of battlefield override state). The Watchdog Timer Value is between 0 and 250 msec.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetSerialWatchdogEnable (int32_t cardIndex, int32_t module, bool_t enable) |
| Enables or disables the Watchdog for Serial communication.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetSerialWatchdogEnable (int32_t cardIndex, int32_t module, bool_t *p_outenable) |
| Retrieves the Watchdog Enable State for Serial communication.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetWatchdogTimeout (int32_t cardIndex, int32_t module, float32_t timeout_ms) |
| Sets the Watchdog Timer for VME/PCIe and Ethernet communication. The Watchdog Timer Value is between 0 and 250 msec.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetWatchdogTimeout (int32_t cardIndex, int32_t module, float32_t *p_outtimeout_ms) |
| Retrieves the Watchdog Timer for VME/PCIe and Ethernet communication. The Watchdog Timer Value is between 0 and 256 msec.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetWatchdogEnable (int32_t cardIndex, int32_t module, bool_t enable) |
| Enables or disables the Watchdog for VME/PCIe and Ethernet communication.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetWatchdogEnable (int32_t cardIndex, int32_t module, bool_t *p_outenable) |
| Retrieves the Watchdog Enable State for VME/PCIe and Ethernet communication.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetOCEventCount (int32_t cardIndex, int32_t module, uint32_t *p_outocEventCount) |
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_Get68PW1OCEvent (int32_t cardIndex, int32_t module, uint32_t ocEventNum, nai_68pw1_oc_event_t *p_out68pw1OcEvent) |
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_Get64PW2OCEvent (int32_t cardIndex, int32_t module, uint32_t ocEventNum, nai_64pw2_oc_event_t *p_out64pw2OcEvent) |
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_ClearOCEvents (int32_t cardIndex, int32_t module) |
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetInterruptVector (int32_t cardIndex, int32_t module, uint32_t vector) |
| Sets the interrupt vector.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetInterruptVector (int32_t cardIndex, int32_t module, uint32_t *p_outvector) |
| Retrieves the interrupt vector.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetInterruptEnableMask (int32_t cardIndex, int32_t module, nai_pwm_status_t mask) |
| Sets the interrupt enable mask. The bit fields in this mask correspond to the bits fields in the Status register refer to nai_pwm_status_t. Writing a "1" to a bit will enable an interrupt for that event. This allows any status register condition to cause an interrupt with the exception of the Master Enable switch.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetInterruptEnableMask (int32_t cardIndex, int32_t module, nai_pwm_status_t *p_outmask) |
| Retrieves the interrupt enable mask. The bit fields in this mask correspond to the bits fields in the Status register refer to nai_pwm_status_t. Writing a "1" to a bit will enable an interrupt for that event. This allows any status register condition to cause an interrupt with the exception of the Master Enable switch.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetVMEInterruptLevel (int32_t cardIndex, int32_t module, uint32_t level) |
| Sets the VME interrupt level.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetVMEInterruptLevel (int32_t cardIndex, int32_t module, uint32_t *p_outlevel) |
| Retrieves the VME interrupt level.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_channel_raw_t type, uint32_t rawdata) |
| Sets the "raw" data value for the register type and channel specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_channel_raw_t type, uint32_t *p_outrawdata) |
| Retrieves the "raw" data value for the register type and channel specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetRaw (int32_t cardIndex, int32_t module, nai_pwm_raw_t type, uint32_t rawdata) |
| Sets the "raw" data value for the register type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetRaw (int32_t cardIndex, int32_t module, nai_pwm_raw_t type, uint32_t *p_outrawdata) |
| Retrieves the "raw" data value for the register type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetDAChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_da_channel_raw_t type, uint32_t rawdata) |
| Sets the "raw" data value for the register type and DA channel specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetDAChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_da_channel_raw_t type, uint32_t *p_outrawdata) |
| Retrieves the "raw" data value for the register type and DA channel specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_SetADChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_ad_channel_raw_t type, uint32_t rawdata) |
| Sets the "raw" data value for the register type and AD channel specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_PWM_GetADChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_pwm_ad_channel_raw_t type, uint32_t *p_outrawdata) |
| Retrieves the "raw" data value for the register type and AD channel specified.
|
|