Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_ConvertToVoltage (uint32_t modid, uint32_t rawdata, float64_t *outvoltage) |
Calculates the voltage in volts associated with the Discrete Switch Module ID from the given raw data. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_ConvertToVoltageRaw (uint32_t modid, float64_t voltage, uint32_t *outrawdata) |
Calculates the raw data associated with the Discrete Switch Module ID and a given voltage. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_ConvertToCurrent (uint32_t modid, uint32_t rawdata, float64_t *outcurrent) |
Calculates the current in Amps associated with the Discrete Switch Module ID and given raw data. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_ConvertToCurrentRaw (uint32_t modid, float64_t current, uint32_t *outrawdata) |
Calculates the raw current associated with the Discrete Switch Module ID and given current. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_ConvertToCurrent | ( | uint32_t | modid, |
uint32_t | rawdata, | ||
float64_t * | outcurrent ) |
Calculates the current in Amps associated with the Discrete Switch Module ID and given raw data.
modid | : (Input) Discrete Switch Module ID. |
rawdata | : (Input) Raw Data Code. |
outcurrent | : (Output) Current in amps. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_ConvertToCurrentRaw | ( | uint32_t | modid, |
float64_t | current, | ||
uint32_t * | outrawdata ) |
Calculates the raw current associated with the Discrete Switch Module ID and given current.
modid | : (Input) Discrete Switch Module ID. |
current | : (Input) Current in amps. |
outrawdata | : (Output) raw data code. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_ConvertToVoltage | ( | uint32_t | modid, |
uint32_t | rawdata, | ||
float64_t * | outvoltage ) |
Calculates the voltage in volts associated with the Discrete Switch Module ID from the given raw data.
modid | : (Input) Discrete Switch Module ID. |
rawdata | : (Input) Raw Data Code. |
outvoltage | : (Output) Voltage in volts. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_ConvertToVoltageRaw | ( | uint32_t | modid, |
float64_t | voltage, | ||
uint32_t * | outrawdata ) |
Calculates the raw data associated with the Discrete Switch Module ID and a given voltage.
modid | : (Input) Discrete Switch Module ID. |
voltage | : (Input) Voltage in volts. |
outrawdata | : (Output) raw data code. |