diff --git a/annotated.html b/annotated.html index 4e144dd..72644e5 100644 --- a/annotated.html +++ b/annotated.html @@ -92,18 +92,19 @@
Ccollector_args_t | |
CCRC8LookupTable | |
Cdummy_write_t | |
CLSM6DSO32Context | |
CMS5611Context | |
CSensor | |
CSensorContext | |
CSensorLocation | |
CSensorTagData | |
CSensorTagList | |
CSysClockContext | |
Cvec3d_t | |
Cclctr_entry_t | |
Ccollector_args_t | |
CCRC8LookupTable | |
Cdummy_write_t | |
CLSM6DSO32Context | |
CMS5611Context | |
CSensor | |
CSensorContext | |
CSensorLocation | |
CSensorTagData | |
CSensorTagList | |
CSysClockContext | |
Cvec3d_t |
+ |
+ fetcher 0.0.0
+
+ A command line utility for reading sensor data over I2C and providing it over stdout.
+ |
+
+Functions | |
collector_t | collector_search (const char *sensor_name) |
collector_t collector_search | +( | +const char * | +sensor_name | ) | ++ |
Searches for a collector matching the sensor name in the list of implemented collectors.
sensor_name | The name of the sensor to find a collector thread for. |
Data Structures | |
struct | clctr_entry_t |
struct | collector_args_t |
#define | clctr_args(args) ((collector_args_t *)((args))) |
+Typedefs | |
typedef void *(* | collector_t) (void *) |
Functions | |||||
collector_t | collector_search (const char *sensor_name) | ||||
void * | sysclock_collector (void *args) | ||||
void * | ms5611_collector (void *args) |
typedef void *(* collector_t) (void *) | +
collector_t collector_search | +( | +const char * | +sensor_name | ) | ++ |
Searches for a collector matching the sensor name in the list of implemented collectors.
sensor_name | The name of the sensor to find a collector thread for. |
Files | |
file | collectors.c |
file | collectors.h [code] |
file | lsm6dso32_clctr.c |
▼ src | |
▼ collectors | |
collectors.h | |
lsm6dso32_clctr.c | |
ms5611_clctr.c | |
sht41_clctr.c | |
sysclock_clctr.c | |
▼ crc-utils | |
crc.c | This file contains the required functions and data to calculate cyclic redundancy checks |
crc.h | Header file containing function prototypes for calculating cyclic redundancy checks |
▼ drivers | |
▼ lsm6dso32 | |
lsm6dso32.c | Sensor API interface implementation for the LSM6DSO32 inertial module |
lsm6dso32.h | Header file containing the necessary types and function prototypes for controlling the LSM6DSO32 inertial module |
▼ ms5611 | |
ms5611.c | Sensor API interface implementation for the MS5611 pressure and temperature sensor |
ms5611.h | Header file containing the necessary types and function prototypes for controlling the MS611 Barometric Pressure Sensor |
▼ sht41 | |
sht41.c | |
sht41.h | Sensor API implementation for the SHT41 temperature and humidity sensor |
▼ sysclock | |
sysclock.c | Contains the types and function definitions required for the system clock sensor to function |
sysclock.h | Contains the sensor API interface implemented by the system clock sensor |
sensor_api.c | This file contains the implementations for the sensor API interface |
sensor_api.h | Types and function prototypes for the sensor API used to communicate with I2C bus sensors |
▼ eeprom | |
eeprom.c | |
eeprom.h | |
main.c | The main function for the fetcher module, where program logic is used to create a console application |
collectors.c | |
collectors.h | |
lsm6dso32_clctr.c | |
ms5611_clctr.c | |
sht41_clctr.c | |
sysclock_clctr.c | |
▼ crc-utils | |
crc.c | This file contains the required functions and data to calculate cyclic redundancy checks |
crc.h | Header file containing function prototypes for calculating cyclic redundancy checks |
▼ drivers | |
▼ lsm6dso32 | |
lsm6dso32.c | Sensor API interface implementation for the LSM6DSO32 inertial module |
lsm6dso32.h | Header file containing the necessary types and function prototypes for controlling the LSM6DSO32 inertial module |
▼ ms5611 | |
ms5611.c | Sensor API interface implementation for the MS5611 pressure and temperature sensor |
ms5611.h | Header file containing the necessary types and function prototypes for controlling the MS611 Barometric Pressure Sensor |
▼ sht41 | |
sht41.c | |
sht41.h | Sensor API implementation for the SHT41 temperature and humidity sensor |
▼ sysclock | |
sysclock.c | Contains the types and function definitions required for the system clock sensor to function |
sysclock.h | Contains the sensor API interface implemented by the system clock sensor |
sensor_api.c | This file contains the implementations for the sensor API interface |
sensor_api.h | Types and function prototypes for the sensor API used to communicate with I2C bus sensors |
▼ eeprom | |
eeprom.c | |
eeprom.h | |
main.c | The main function for the fetcher module, where program logic is used to create a console application |
+ |
+ fetcher 0.0.0
+
+ A command line utility for reading sensor data over I2C and providing it over stdout.
+ |
+
Functions | |
const char * | read_sensor_name (const char *board_id, char *sensor_name, uint8_t nbytes) |
const char * | read_sensor_addresses (const char *board_id, uint8_t *addresses, uint8_t *naddrs) |
int | main (int argc, char **argv) |
The main function for the fetcher module, where program logic is used to create a console application.
The main function for the fetcher module, where program logic is used to create a console application.
#define ARENA_SIZE 256 | +#define BUFFER_SIZE 100 |
The size of the static memory buffer (in bytes) for allocating sensor contexts on.
+Size of the buffer to read input data.
#define BUFFER_SIZE 100 | +#define BUS_SPEED 400000 |
Size of the buffer to read input data.
+The speed of the I2C bus in kilobits per second.
#define BUS_SPEED 400000 | +#define MAX_ADDR_PER_SENSOR 5 |
The maximum number of addresses per sensor type.
+ +#define MAX_SENSOR_NAME 20 | +
The maximum number of characters in a sensor identifier.
+ +#define MAX_SENSORS 8 | +
The maximum number of sensors that fetcher can support.
Decide on output stream.
+ + + +const char * read_sensor_addresses | +( | +const char * | +board_id, | +
+ | + | uint8_t * | +addresses, | +
+ | + | uint8_t * | +naddrs | +
+ | ) | ++ |
Reads up to naddrs
addresses from the board ID into an array of addresses
.
board_id | The current position in the board ID where an address starts. |
addresses | An array of bytes with enough space to store naddrs bytes. |
naddrs | A pointer to the maximum number of addresses to read. After the function call, this pointer will contain the actual number of addresses read. |
naddrs
needs to be larger. const char * read_sensor_name | +( | +const char * | +board_id, | +
+ | + | char * | +sensor_name, | +
+ | + | uint8_t | +nbytes | +
+ | ) | ++ |
Reads the sensor name from the board ID into a new buffer.
board_id | The contents of the board ID. |
sensor_name | The buffer to store the sensor name. |
nbytes | The maximum number of bytes to read. |
+ |
+ fetcher 0.0.0
+
+ A command line utility for reading sensor data over I2C and providing it over stdout.
+ |
+
#include <collectors.h>
+Data Fields | |
const char * | name |
const collector_t | collector |
Collector name + thread entries for associating control threads with sensor names.
+const collector_t clctr_entry_t::collector | +
The function pointer to the collector thread.
+ +const char* clctr_entry_t::name | +
The name of the sensor associated with the collector thread.
+ +