Definition in file common.h.
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | CRC_16 0xa001 |
#define | CRC_CCITT 0x8408 |
Typedefs | |
typedef __uint8_t | uint8 |
typedef __uint16_t | uint16 |
Functions | |
uint16 | mbcrc_calc (uint8 *data, int len) |
uint16 | mbcwc_tlu (uint8 *data, int len) |
int | init_serial (char *portfn, speed_t brate, int *portfd) |
Initialize serial port The presumption was that we'd always be talking exclusively to devices in 8N1. Now, to use 2 stop bits, we had to use a define to avoid rewriting all the code that uses init_serial as it is already written. Any major version change should incorporate an option for doing this properly in the code. | |
int | say (int fd, char *str) |
Send data string to serial port. | |
int | hear (int fd, char *str, int maxlen, int minlen, int maxbtime, char term) |
hear function reads data from serial port |
|
|
|
|
|
|
|
|
|
|
Initialize serial port
Definition at line 27 of file common.c. Referenced by _daq(), PhysicalTiltSensor::Initialize(), PhysicalMomentumWheel::Initialize(), PhysicalLinearActuator::Initialize(), PhysicalControlMomentGyro::Initialize(), Magnetometer::Initialize(), and main(). |
|
|
|
|
|
Send data string to serial port.
Definition at line 74 of file common.c. Referenced by Magnetometer::AsciiParser(), Magnetometer::BinaryParser(), PhysicalMomentumWheel::ChangeBaud(), PhysicalControlMomentGyro::CommandAngle(), PhysicalControlMomentGyro::CommandGimbalRate(), PhysicalMomentumWheel::CommandSystemTorque(), PhysicalControlMomentGyro::CommandWheelSpeed(), PhysicalControlMomentGyro::CommandWheelTorque(), Magnetometer::ContinuousDataConfiguration(), Magnetometer::DefaultConfiguration(), PhysicalMomentumWheel::EchoOff(), PhysicalMomentumWheel::EchoOn(), PhysicalMomentumWheel::EnableTorqueMode(), PhysicalControlMomentGyro::FindLimits(), PhysicalMomentumWheel::GetAmps(), PhysicalTiltSensor::GetAngles(), PhysicalMomentumWheel::GetVolts(), PhysicalControlMomentGyro::GoCommand(), PhysicalTiltSensor::Initialize(), PhysicalLinearActuator::Initialize(), PhysicalControlMomentGyro::Initialize(), main(), Magnetometer::PolledDataConfiguration(), Magnetometer::QuerryConfiguration(), PhysicalControlMomentGyro::QueryAngle(), PhysicalLinearActuator::QueryCurrentPosition(), QueryWheelSpeed(), PhysicalControlMomentGyro::QueryWheelSpeed(), PhysicalMomentumWheel::QueryWheelTorque(), PhysicalControlMomentGyro::QueryWheelTorque(), Magnetometer::ReEnterOffConfiguration(), Magnetometer::ReEnterOnConfiguration(), PhysicalMomentumWheel::Reset(), Magnetometer::SetAsciiConfiguration(), Magnetometer::SetAveragingOffConfiguration(), Magnetometer::SetAveragingOnConfiguration(), Magnetometer::SetBaud19200Configuration(), Magnetometer::SetBinaryConfiguration(), Magnetometer::SetResetOffConfiguration(), Magnetometer::SetResetOnConfiguration(), Magnetometer::SetSampleRateConfiguration(), PhysicalLinearActuator::SetVelocity(), PhysicalLinearActuator::StartJog(), PhysicalLinearActuator::Stop(), PhysicalMomentumWheel::TorqueCommand(), PhysicalLinearActuator::TravelDistance(), PhysicalLinearActuator::TravelPosition(), and Magnetometer::~Magnetometer(). |