Skip to content
Snippets Groups Projects
Commit 46d27ba6 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

fix spelling in various places

parent b3d3f2b5
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ libcoincellhell is a shared library that allows you to control coincellhell devi ...@@ -4,7 +4,7 @@ libcoincellhell is a shared library that allows you to control coincellhell devi
For questions or comments, please write to klemm@rhd-instruments.de For questions or comments, please write to klemm@rhd-instruments.de
Full Online API documentation can be built with the "doc" target and is also avialable [here](http://uvos.xyz/kiss/libcoincellhell). Full Online API documentation can be built with the "doc" target and is also available [here](http://uvos.xyz/kiss/libcoincellhell).
A PDF with API documentation can be found [here](http://uvos.xyz/kiss/libcoincellhell.pdf). A PDF with API documentation can be found [here](http://uvos.xyz/kiss/libcoincellhell.pdf).
## Compile/Install ## Compile/Install
...@@ -33,6 +33,6 @@ to make the documentation: ...@@ -33,6 +33,6 @@ to make the documentation:
* make doc * make doc
### Licence ### License
libcoincellhell is licenced to you under the Apache License, Version 2.0 libcoincellhell is licensed to you under the Apache License, Version 2.0
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
#include "usbcommands.h" #include "usbcommands.h"
/** /**
Api to controll EISmultiplexer devices. API to control EISmultiplexer devices.
* @defgroup API User API * @defgroup API User API
* This api allows you to controll the EISmultiplexer device. * This API allows you to control the EISmultiplexer device.
* @{ * @{
*/ */
...@@ -55,39 +55,39 @@ struct heater_state ...@@ -55,39 +55,39 @@ struct heater_state
bool enabled; bool enabled;
/** true if heater is close to its set point*/ /** true if heater is close to its set point*/
bool ready; bool ready;
/** true if heater is currently exectueting a ramp*/ /** true if heater is currently executing a ramp*/
bool ramp; bool ramp;
/** true if the system has detected a fault with this heater*/ /** true if the system has detected a fault with this heater*/
bool fault; bool fault;
/** the detected fault type as a fault_t enum*/ /** the detected fault type as a fault_t enum*/
fault_t faultType; fault_t faultType;
/** current command (0-255) that is being sent to the dac for this heater*/ /** current command (0-255) that is being sent to the DAC for this heater*/
uint8_t dacCommand; uint8_t dacCommand;
/** current target temperature for this heater*/ /** current target temperature for this heater*/
float setpoint; float setpoint;
/** if a ramp is currently being executed, its final temperature will be set here*/ /** if a ramp is currently being executed, its final temperature will be set here*/
float rampTarget; float rampTarget;
/** if a ramp is currently being executed, the unix timestamp at which it was started*/ /** if a ramp is currently being executed, the UNIX timestamp at which it was started*/
time_t rampStartTime; time_t rampStartTime;
/** if a ramp is currently being executed, the unix timestamp at it will complete*/ /** if a ramp is currently being executed, the UNIX timestamp at it will complete*/
time_t rampStopTime; time_t rampStopTime;
}; };
/** /**
* @brief Attempts to connect to a EISmultiplexer device and initalizes a coincellhell struct * @brief Attempts to connect to a EISmultiplexer device and initializes a coincellhell struct
* @param hell pointer to a coincellhell struct to initalize * @param hell pointer to a coincellhell struct to initialize
* @param serial The serial number of the device to connect to, or 0 for any * @param serial The serial number of the device to connect to, or 0 for any
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_connect(struct coincellhell* hell, uint16_t serial); int coincellhell_connect(struct coincellhell* hell, uint16_t serial);
/** /**
* @brief Reads the current temperature of the given heater at given location * @brief Reads the current temperature of the given heater at given location
* @param heater heater from which to get the temperature * @param heater heater from which to get the temperature
* @param location Place where temperature shal be mesured * @param location Place where temperature shall be measured
* @param temperature A float where the temperature in degrees celcius will be stored * @param temperature A float where the temperature in degrees Celsius will be stored
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_get_temperature(struct coincellhell* hell, uint8_t heater, temperature_sensor_location_t location, float* temperature); int coincellhell_get_temperature(struct coincellhell* hell, uint8_t heater, temperature_sensor_location_t location, float* temperature);
...@@ -95,15 +95,15 @@ int coincellhell_get_temperature(struct coincellhell* hell, uint8_t heater, temp ...@@ -95,15 +95,15 @@ int coincellhell_get_temperature(struct coincellhell* hell, uint8_t heater, temp
* @brief Sets the target temperature of the given heater * @brief Sets the target temperature of the given heater
* @param heater heater for which to set the temperature * @param heater heater for which to set the temperature
* @param temperature temperature to set * @param temperature temperature to set
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_set_temperature(struct coincellhell* hell, uint8_t heater, float temperature); int coincellhell_set_temperature(struct coincellhell* hell, uint8_t heater, float temperature);
/** /**
* @brief Gets the target temperature of the given heater * @brief Gets the target temperature of the given heater
* @param heater heater for which to set the temperature * @param heater heater for which to set the temperature
* @param temperature A float where the temperature in degrees celcius will be stored * @param temperature A float where the temperature in degrees Celsius will be stored
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t heater, float* temperature); int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t heater, float* temperature);
...@@ -111,7 +111,7 @@ int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t hea ...@@ -111,7 +111,7 @@ int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t hea
* @brief Gets the state struct for the given heater * @brief Gets the state struct for the given heater
* @param heater heater for which to set the temperature * @param heater heater for which to set the temperature
* @param state A struct where the state will be stored * @param state A struct where the state will be stored
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_get_state(struct coincellhell* hell, uint8_t heater, struct heater_state* state); int coincellhell_get_state(struct coincellhell* hell, uint8_t heater, struct heater_state* state);
...@@ -119,14 +119,14 @@ int coincellhell_get_state(struct coincellhell* hell, uint8_t heater, struct hea ...@@ -119,14 +119,14 @@ int coincellhell_get_state(struct coincellhell* hell, uint8_t heater, struct hea
* @brief Sets the enabled state for a give heater * @brief Sets the enabled state for a give heater
* @param heater heater for which to set the enabled state * @param heater heater for which to set the enabled state
* @param state A struct where the state will be stored * @param state A struct where the state will be stored
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_set_enabled(struct coincellhell* hell, uint8_t heater, bool enabled); int coincellhell_set_enabled(struct coincellhell* hell, uint8_t heater, bool enabled);
/** /**
* @brief Checks if all temperatures are close to thair setpoins * @brief Checks if all temperatures are close to their set points
* @param ready a pointer to a bool where the result will be stored, true if all temperatures have been reatch, false otherwise * @param ready a pointer to a bool where the result will be stored, true if all temperatures have been reach, false otherwise
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_check_ready(struct coincellhell* hell, bool* ready); int coincellhell_check_ready(struct coincellhell* hell, bool* ready);
...@@ -134,22 +134,22 @@ int coincellhell_check_ready(struct coincellhell* hell, bool* ready); ...@@ -134,22 +134,22 @@ int coincellhell_check_ready(struct coincellhell* hell, bool* ready);
* @brief Will linearly ramp the temperature to the one provided from now until end_time * @brief Will linearly ramp the temperature to the one provided from now until end_time
* @param heater heater for which to set the ramp * @param heater heater for which to set the ramp
* @param temperature temperature to ramp to * @param temperature temperature to ramp to
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_set_temperature_ramp(struct coincellhell* hell, uint8_t heater, time_t end_time, float temperature); int coincellhell_set_temperature_ramp(struct coincellhell* hell, uint8_t heater, time_t end_time, float temperature);
/** /**
* @brief Cancles any previously set ramp, the setpoint of the heater will hold the current temperature * @brief Cancels any previously set ramp, the set points of the heater will hold the current temperature
* @param heater heater for which to cancle the ramp * @param heater heater for which to cancel the ramp
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_cancle_ramp(struct coincellhell* hell, uint8_t heater); int coincellhell_cancle_ramp(struct coincellhell* hell, uint8_t heater);
/** /**
* @brief Turns the led on the pcb on or off * @brief Turns the led on the PCB on or off
* @param hell pointer to a coincellhell struct * @param hell pointer to a coincellhell struct
* @param on true to turn the led on, false to turn it off * @param on true to turn the led on, false to turn it off
* @return 0 on sucess and < 0 on failure * @return 0 on success and < 0 on failure
*/ */
int coincellhell_set_led(struct coincellhell* hell, bool on); int coincellhell_set_led(struct coincellhell* hell, bool on);
...@@ -167,7 +167,7 @@ void coincellhell_disconnect(struct coincellhell* hell); ...@@ -167,7 +167,7 @@ void coincellhell_disconnect(struct coincellhell* hell);
/** /**
* @brief Returns a human readable string for a given fault. * @brief Returns a human readable string for a given fault.
* @param fault the fault code * @param fault the fault code
* @return a const string describeing the fault * @return a const string describing the fault
*/ */
const char* coincellhell_string_for_fault(fault_t fault); const char* coincellhell_string_for_fault(fault_t fault);
......
...@@ -42,7 +42,7 @@ static struct argp_option options[] = ...@@ -42,7 +42,7 @@ static struct argp_option options[] =
{ {
{"interactive", 'i', 0, 0, "run in interactive mode" }, {"interactive", 'i', 0, 0, "run in interactive mode" },
{"pipe", 'p', 0, 0, "run in pipe mode" }, {"pipe", 'p', 0, 0, "run in pipe mode" },
{"serial", 's', "[NUMMBER]", 0, "serial number of device to connect to"}, {"serial", 's', "[NUMBER]", 0, "serial number of device to connect to"},
{"list", 'l', 0, 0, "list commands"}, {"list", 'l', 0, 0, "list commands"},
{0} {0}
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment