java: Changed size_t and unsigned int to int in array declarations. Renamed buf to buffer where necesarry. Moved most Java array typemaps to java_buffer.i. Fixed some String buffers.
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Conflicts: src/upm.i
This commit is contained in:
committed by
Mihai Tudor Panu
parent
ab730038fd
commit
2cab79b4c2
@@ -27,7 +27,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <mraa/i2c.h>
|
||||
#include <mraa/i2c.hpp>
|
||||
|
||||
#define DS1307_I2C_BUS 0
|
||||
#define DS1307_I2C_ADDR 0x68
|
||||
@@ -102,7 +102,7 @@ namespace upm {
|
||||
*
|
||||
* @return 0 (MRAA_SUCCESS) if successful; non-zero otherwise
|
||||
*/
|
||||
mraa_result_t enableClock();
|
||||
mraa::Result enableClock();
|
||||
|
||||
/**
|
||||
* Disables the oscillator on the clock. This prevents the clock
|
||||
@@ -110,7 +110,7 @@ namespace upm {
|
||||
*
|
||||
* @return 0 (MRAA_SUCCESS) if successful; non-zero otherwise
|
||||
*/
|
||||
mraa_result_t disableClock();
|
||||
mraa::Result disableClock();
|
||||
|
||||
/**
|
||||
* Writes value(s) into registers
|
||||
@@ -120,7 +120,7 @@ namespace upm {
|
||||
* @param len Number of bytes to write
|
||||
* @return 0 (MRAA_SUCCESS) if successful; non-zero otherwise
|
||||
*/
|
||||
mraa_result_t writeBytes(uint8_t reg, uint8_t *buffer, unsigned int len);
|
||||
mraa::Result writeBytes(uint8_t reg, uint8_t *buffer, int len);
|
||||
|
||||
/**
|
||||
* Reads value(s) from registers
|
||||
@@ -130,7 +130,7 @@ namespace upm {
|
||||
* @param len Number of bytes to read
|
||||
* @return Number of bytes read
|
||||
*/
|
||||
uint8_t readBytes(uint8_t reg, uint8_t *buffer, unsigned int len);
|
||||
int readBytes(uint8_t reg, uint8_t *buffer, int len);
|
||||
|
||||
/**
|
||||
* Converts a BCD value into decimal
|
||||
|
||||
Reference in New Issue
Block a user