mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 02:41:14 +03:00
java: changed some C types to C++ types
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Conflicts: src/mma7455/mma7455.cxx src/mma7455/mma7455.h src/sm130/sm130.cxx src/sm130/sm130.h
This commit is contained in:

committed by
Mihai Tudor Panu

parent
b8835958e2
commit
ab730038fd
@ -24,7 +24,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <mraa/i2c.h>
|
||||
#include <mraa/i2c.hpp>
|
||||
|
||||
#define MPR121_I2C_BUS 0
|
||||
#define MPR121_DEFAULT_I2C_ADDR 0x5a
|
||||
@ -64,8 +64,9 @@ namespace upm {
|
||||
|
||||
/**
|
||||
* MPR121 destructor
|
||||
*/
|
||||
~MPR121();
|
||||
* ~MPR121();
|
||||
* there is no need for the destructor
|
||||
**/
|
||||
|
||||
/**
|
||||
* Sets up a default configuration, based on Application Note 3944
|
||||
@ -90,9 +91,9 @@ namespace upm {
|
||||
* @param reg Register location to start writing into
|
||||
* @param buffer Buffer for data storage
|
||||
* @param len Number of bytes to write
|
||||
* @return mraa_result_t
|
||||
* @return mraa::Result
|
||||
*/
|
||||
mraa_result_t writeBytes(uint8_t reg, uint8_t *buffer, unsigned int len);
|
||||
mraa::Result writeBytes(uint8_t reg, uint8_t *buffer, unsigned int len);
|
||||
|
||||
/**
|
||||
* Reads value(s) from registers
|
||||
@ -114,7 +115,7 @@ namespace upm {
|
||||
bool m_overCurrentFault;
|
||||
|
||||
private:
|
||||
mraa_i2c_context m_i2c;
|
||||
mraa::I2c m_i2c;
|
||||
uint8_t m_addr;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user