Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
Go to the source code of this file.
Functions | |
void | ezcurrent_init (void) |
void | ezcurrent_read_periodic (void) |
void | ezcurrent_read_event (void) |
void ezcurrent_init | ( | void | ) |
Definition at line 50 of file ezcurrent.c.
References EZCURRENT_ADDR, ezcurrent_i2c_trans, I2CTransDone, i2c_transaction::slave_addr, and i2c_transaction::status.
void ezcurrent_read_event | ( | void | ) |
Definition at line 66 of file ezcurrent.c.
References i2c_transaction::buf, Electrical::charge, Electrical::current, electrical, ezcurrent_i2c_trans, I2CTransDone, I2CTransFailed, I2CTransSuccess, Int16FromBuf, i2c_transaction::status, Uint16FromBuf, and Electrical::vsupply.
void ezcurrent_read_periodic | ( | void | ) |
Definition at line 56 of file ezcurrent.c.
References EZCURRENT_I2C_DEV, ezcurrent_i2c_trans, i2c_receive(), I2CTransDone, i2c_transaction::slave_addr, and i2c_transaction::status.