Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DT_ConvertToVoltage (uint32_t modId, uint32_t rawdata, float64_t *p_outVoltage) |
Calculates the voltage in volts associated with the Discrete Module ID from the given raw data. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DT_ConvertToVoltageRaw (uint32_t modId, float64_t voltage, uint32_t *p_outrawData) |
Calculates the raw data associated with the Discrete Module ID and a given voltage. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DT_ConvertToCurrent (uint32_t modId, uint32_t rawdata, float64_t *p_outCurrent_mA) |
Calculates the current in Amps associated with the Discrete Module ID and given raw data. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ConvertToCurrent | ( | uint32_t | modId, |
uint32_t | rawdata, | ||
float64_t * | p_outCurrent_mA ) |
Calculates the current in Amps associated with the Discrete Module ID and given raw data.
modId | : (Input) Discrete Module ID. |
rawdata | : (Input) Raw Data Code. |
p_outCurrent_mA | : (Output) Current in miliAmps. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ConvertToVoltage | ( | uint32_t | modId, |
uint32_t | rawdata, | ||
float64_t * | p_outVoltage ) |
Calculates the voltage in volts associated with the Discrete Module ID from the given raw data.
modId | : (Input) Discrete Module ID. |
rawdata | : (Input) Raw Data Code. |
p_outVoltage | : (Output) Voltage in volts. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_ConvertToVoltageRaw | ( | uint32_t | modId, |
float64_t | voltage, | ||
uint32_t * | p_outrawData ) |
Calculates the raw data associated with the Discrete Module ID and a given voltage.
modId | : (Input) Discrete Module ID. |
voltage | : (Input) Voltage in volts. |
p_outrawData | : (Output) raw data code. |