mirror of
https://github.com/eclipse/upm.git
synced 2025-07-09 13:21:22 +03:00
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
@ -218,7 +218,7 @@ namespace upm {
|
||||
*
|
||||
* @param buf Buffer to hold the returned UID. Must be UID_LENGTH bytes.
|
||||
*/
|
||||
void getUID(uint8_t* buf);
|
||||
void getUID(uint8_t* buffer);
|
||||
|
||||
/**
|
||||
* Returns the memory size
|
||||
@ -239,7 +239,7 @@ namespace upm {
|
||||
* @param address Address to write to
|
||||
* @param data Data to write
|
||||
*/
|
||||
void writeByte(unsigned int address, uint8_t data);
|
||||
mraa::Result writeByte(unsigned int address, uint8_t data);
|
||||
|
||||
/**
|
||||
* Writes bytes to the EEPROM
|
||||
@ -248,7 +248,7 @@ namespace upm {
|
||||
* @param data Data to write
|
||||
* @param data Length of the data buffer
|
||||
*/
|
||||
void writeBytes(unsigned int address, uint8_t* buf, unsigned int len);
|
||||
mraa::Result writeBytes(unsigned int address, uint8_t* buffer, int len);
|
||||
|
||||
/**
|
||||
* Reads a byte from the EEPROM
|
||||
@ -265,16 +265,16 @@ namespace upm {
|
||||
* @param buffer Buffer to store data
|
||||
* @param len Number of bytes to read
|
||||
*/
|
||||
void readBytes(unsigned int address, uint8_t* buf, unsigned int len);
|
||||
int readBytes(unsigned int address, uint8_t* buffer, int len);
|
||||
|
||||
protected:
|
||||
mraa::I2c m_i2c;
|
||||
void EEPROM_Write_Byte(unsigned int address, uint8_t data);
|
||||
void EEPROM_Write_Bytes(unsigned int address, uint8_t* data,
|
||||
unsigned int len);
|
||||
mraa::Result EEPROM_Write_Byte(unsigned int address, uint8_t data);
|
||||
mraa::Result EEPROM_Write_Bytes(unsigned int address, uint8_t* data,
|
||||
int len);
|
||||
uint8_t EEPROM_Read_Byte(unsigned int address);
|
||||
unsigned int EEPROM_Read_Bytes(unsigned int address,
|
||||
uint8_t* buf, unsigned int len);
|
||||
int EEPROM_Read_Bytes(unsigned int address,
|
||||
uint8_t* buffer, int len);
|
||||
|
||||
private:
|
||||
uint8_t m_addr;
|
||||
|
Reference in New Issue
Block a user