Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
I2C interface for University of Reading Geiger counter. More...
#include "modules/meteo/geiger_counter.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
Go to the source code of this file.
Macros | |
#define | GEIGER_CNT_DEV i2c0 |
#define | GEIGER_CNT_I2C_ADDR 0x76 |
Functions | |
void | geiger_counter_init (void) |
void | geiger_counter_periodic (void) |
void | geiger_counter_event (void) |
Variables | |
struct i2c_transaction | geiger_trans |
uint32_t | count_geiger_1 |
uint32_t | count_geiger_2 |
uint16_t | volt_geiger |
I2C interface for University of Reading Geiger counter.
Definition in file geiger_counter.c.
#define GEIGER_CNT_DEV i2c0 |
Definition at line 36 of file geiger_counter.c.
Referenced by geiger_counter_periodic().
#define GEIGER_CNT_I2C_ADDR 0x76 |
Definition at line 39 of file geiger_counter.c.
Referenced by geiger_counter_periodic().
void geiger_counter_event | ( | void | ) |
Definition at line 54 of file geiger_counter.c.
References i2c_transaction::buf, count_geiger_1, count_geiger_2, DefaultChannel, DefaultDevice, geiger_trans, I2CTransDone, I2CTransSuccess, i2c_transaction::status, and volt_geiger.
void geiger_counter_init | ( | void | ) |
Definition at line 45 of file geiger_counter.c.
void geiger_counter_periodic | ( | void | ) |
Definition at line 49 of file geiger_counter.c.
References GEIGER_CNT_DEV, GEIGER_CNT_I2C_ADDR, geiger_trans, and i2c_receive().
uint32_t count_geiger_1 |
Definition at line 42 of file geiger_counter.c.
Referenced by geiger_counter_event().
uint32_t count_geiger_2 |
Definition at line 42 of file geiger_counter.c.
Referenced by geiger_counter_event().
struct i2c_transaction geiger_trans |
Definition at line 41 of file geiger_counter.c.
Referenced by geiger_counter_event(), and geiger_counter_periodic().
uint16_t volt_geiger |
Definition at line 43 of file geiger_counter.c.
Referenced by geiger_counter_event().