#include <labjack_ue9.H>
Public Member Functions | |
labjack_ue9_t (void) | |
bool | initialize (void) |
bool | set_limits (unsigned channel_number, double max_voltage, double mid_voltage, double min_voltage, bool reverse) |
int | open_labjack_ue9_device (const char *ip_address, int tcp_port) |
bool | set_position (unsigned steering_channel, double steering_position, unsigned throttle_channel, double throttle_position) |
bool | handle_response (void) |
int | socket_status (void) |
void | close_labjack_device (void) |
bool | set_watchdogtimer (double timeout, double steering_position, unsigned steering_channel, double throttle_position, unsigned throttle_channel) |
bool | get_watchdogtimer_settings (double timeout, double steering_position, unsigned steering_channel, double throttle_position, unsigned throttle_channel) |
Protected Member Functions | |
void | set_extended_checksum (unsigned char *sendbuff, int length) |
int | check_recv_data_checksum (unsigned char *recvbuff, int length) const |
int | get_calib_info (void) |
double | byte_array_to_double (unsigned char *buffer, int start_index) |
Protected Attributes | |
int | m_socketfd |
calib_info_t | m_calib_info |
channel_parameters_t | channel [2] |
double | no_of_analog_channels |
double | mapping_ratio |
labjack_ue9_t::labjack_ue9_t | ( | void | ) |
References m_socketfd.
double labjack_ue9_t::byte_array_to_double | ( | unsigned char * | buffer, | |
int | start_index | |||
) | [protected] |
Referenced by get_calib_info().
int labjack_ue9_t::check_recv_data_checksum | ( | unsigned char * | recvbuff, | |
int | length | |||
) | const [protected] |
Referenced by get_watchdogtimer_settings(), handle_response(), and set_watchdogtimer().
void labjack_ue9_t::close_labjack_device | ( | void | ) |
References m_socketfd.
Referenced by main().
int labjack_ue9_t::get_calib_info | ( | void | ) | [protected] |
References ue9_calibration_information::bipolar_offset, ue9_calibration_information::bipolar_slope, byte_array_to_double(), ue9_calibration_information::cal_temp, ue9_calibration_information::dac_offset, ue9_calibration_information::dac_slope, ue9_calibration_information::hi_res_bipolar_offset, ue9_calibration_information::hi_res_bipolar_slope, ue9_calibration_information::hi_res_unipolar_offset, ue9_calibration_information::hi_res_unipolar_slope, m_calib_info, m_socketfd, set_extended_checksum(), ue9_calibration_information::temp_slope, ue9_calibration_information::temp_slope_low, ue9_calibration_information::unipolar_offset, ue9_calibration_information::unipolar_slope, ue9_calibration_information::v_ref, ue9_calibration_information::v_ref_div2, and ue9_calibration_information::vs_slope.
Referenced by initialize().
bool labjack_ue9_t::get_watchdogtimer_settings | ( | double | timeout, | |
double | steering_position, | |||
unsigned | steering_channel, | |||
double | throttle_position, | |||
unsigned | throttle_channel | |||
) |
bool labjack_ue9_t::handle_response | ( | void | ) |
References check_recv_data_checksum(), and m_socketfd.
Referenced by main().
bool labjack_ue9_t::initialize | ( | void | ) |
References get_calib_info(), m_socketfd, mapping_ratio, and no_of_analog_channels.
Referenced by main().
int labjack_ue9_t::open_labjack_ue9_device | ( | const char * | ip_address, | |
int | tcp_port | |||
) |
References m_socketfd.
void labjack_ue9_t::set_extended_checksum | ( | unsigned char * | sendbuff, | |
int | length | |||
) | [protected] |
Referenced by get_calib_info(), get_watchdogtimer_settings(), set_position(), and set_watchdogtimer().
bool labjack_ue9_t::set_limits | ( | unsigned | channel_number, | |
double | max_voltage, | |||
double | mid_voltage, | |||
double | min_voltage, | |||
bool | reverse | |||
) |
References channel, m_calib_info, channel_parameters::max_voltage, channel_parameters::mid_voltage, channel_parameters::min_voltage, no_of_analog_channels, and channel_parameters::reverse.
Referenced by main().
bool labjack_ue9_t::set_position | ( | unsigned | steering_channel, | |
double | steering_position, | |||
unsigned | throttle_channel, | |||
double | throttle_position | |||
) |
References channel, m_socketfd, channel_parameters::max_voltage, channel_parameters::mid_voltage, channel_parameters::min_voltage, no_of_analog_channels, and set_extended_checksum().
Referenced by main().
bool labjack_ue9_t::set_watchdogtimer | ( | double | timeout, | |
double | steering_position, | |||
unsigned | steering_channel, | |||
double | throttle_position, | |||
unsigned | throttle_channel | |||
) |
int labjack_ue9_t::socket_status | ( | void | ) |
References m_socketfd.
channel_parameters_t cajun::labjack_ue9_t::channel[2] [protected] |
Referenced by get_watchdogtimer_settings(), set_limits(), set_position(), and set_watchdogtimer().
calib_info_t cajun::labjack_ue9_t::m_calib_info [protected] |
Referenced by get_calib_info(), and set_limits().
int cajun::labjack_ue9_t::m_socketfd [protected] |
double cajun::labjack_ue9_t::mapping_ratio [protected] |
Referenced by initialize().
double cajun::labjack_ue9_t::no_of_analog_channels [protected] |
Referenced by get_watchdogtimer_settings(), initialize(), set_limits(), set_position(), and set_watchdogtimer().