Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 58) sorted by relevance

123

/loramac-node-2.7.6/src/peripherals/
Dmma8451.c41 LmnStatus_t MMA8451Write( uint8_t addr, uint8_t data );
51 LmnStatus_t MMA8451WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size );
60 LmnStatus_t MMA8451Read( uint8_t addr, uint8_t *data );
70 LmnStatus_t MMA8451ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size );
77 void MMA8451SetDeviceAddr( uint8_t addr );
121 LmnStatus_t MMA8451Write( uint8_t addr, uint8_t data ) in MMA8451Write() argument
123 return MMA8451WriteBuffer( addr, &data, 1 ); in MMA8451Write()
126 LmnStatus_t MMA8451WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in MMA8451WriteBuffer() argument
128 return I2cWriteMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in MMA8451WriteBuffer()
131 LmnStatus_t MMA8451Read( uint8_t addr, uint8_t *data ) in MMA8451Read() argument
[all …]
Dsx1509.c57 LmnStatus_t SX1509Write( uint8_t addr, uint8_t data ) in SX1509Write() argument
59 return SX1509WriteBuffer( addr, &data, 1 ); in SX1509Write()
62 LmnStatus_t SX1509WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in SX1509WriteBuffer() argument
64 return I2cWriteMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in SX1509WriteBuffer()
67 LmnStatus_t SX1509Read( uint8_t addr, uint8_t *data ) in SX1509Read() argument
69 return SX1509ReadBuffer( addr, data, 1 ); in SX1509Read()
72 LmnStatus_t SX1509ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in SX1509ReadBuffer() argument
74 return I2cReadMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in SX1509ReadBuffer()
77 void SX1509SetDeviceAddr( uint8_t addr ) in SX1509SetDeviceAddr() argument
79 I2cDeviceAddr = addr; in SX1509SetDeviceAddr()
Dmag3110.c63 LmnStatus_t MAG3110Write( uint8_t addr, uint8_t data ) in MAG3110Write() argument
65 return MAG3110WriteBuffer( addr, &data, 1 ); in MAG3110Write()
68 LmnStatus_t MAG3110WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in MAG3110WriteBuffer() argument
70 return I2cWriteMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in MAG3110WriteBuffer()
73 LmnStatus_t MAG3110Read( uint8_t addr, uint8_t *data ) in MAG3110Read() argument
75 return MAG3110ReadBuffer( addr, data, 1 ); in MAG3110Read()
78 LmnStatus_t MAG3110ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in MAG3110ReadBuffer() argument
80 return I2cReadMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in MAG3110ReadBuffer()
83 void MAG3110SetDeviceAddr( uint8_t addr ) in MAG3110SetDeviceAddr() argument
85 I2cDeviceAddr = addr; in MAG3110SetDeviceAddr()
Dpam7q.c88 void PAM7QSetDeviceAddr( uint8_t addr ) in PAM7QSetDeviceAddr() argument
90 I2cDeviceAddr = addr; in PAM7QSetDeviceAddr()
93 uint8_t PAM7QWrite( uint8_t addr, uint8_t data ) in PAM7QWrite() argument
95 return PAM7QWriteBuffer( addr, &data, 1 ); in PAM7QWrite()
98 uint8_t PAM7QWriteBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in PAM7QWriteBuffer() argument
100 return I2cWriteMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in PAM7QWriteBuffer()
103 uint8_t PAM7QRead( uint8_t addr, uint8_t *data ) in PAM7QRead() argument
105 return PAM7QReadBuffer( addr, data, 1 ); in PAM7QRead()
108 uint8_t PAM7QReadBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in PAM7QReadBuffer() argument
110 return I2cReadMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in PAM7QReadBuffer()
Dsx9500.c64 LmnStatus_t SX9500Write( uint8_t addr, uint8_t data ) in SX9500Write() argument
66 return SX9500WriteBuffer( addr, &data, 1 ); in SX9500Write()
69 LmnStatus_t SX9500WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in SX9500WriteBuffer() argument
71 return I2cWriteMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in SX9500WriteBuffer()
74 LmnStatus_t SX9500Read( uint8_t addr, uint8_t *data ) in SX9500Read() argument
76 return SX9500ReadBuffer( addr, data, 1 ); in SX9500Read()
79 LmnStatus_t SX9500ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in SX9500ReadBuffer() argument
81 return I2cReadMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in SX9500ReadBuffer()
84 void SX9500SetDeviceAddr( uint8_t addr ) in SX9500SetDeviceAddr() argument
86 I2cDeviceAddr = addr; in SX9500SetDeviceAddr()
Dmpl3115.c57 LmnStatus_t MPL3115Write( uint8_t addr, uint8_t data );
67 LmnStatus_t MPL3115WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size );
76 LmnStatus_t MPL3115Read( uint8_t addr, uint8_t *data );
86 LmnStatus_t MPL3115ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size );
93 void MPL3115SetDeviceAddr( uint8_t addr );
164 LmnStatus_t MPL3115Write( uint8_t addr, uint8_t data ) in MPL3115Write() argument
166 return MPL3115WriteBuffer( addr, &data, 1 ); in MPL3115Write()
169 LmnStatus_t MPL3115WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size ) in MPL3115WriteBuffer() argument
171 return I2cWriteMemBuffer( &I2c, I2cDeviceAddr << 1, addr, data, size ); in MPL3115WriteBuffer()
174 LmnStatus_t MPL3115Read( uint8_t addr, uint8_t *data ) in MPL3115Read() argument
[all …]
Dmag3110.h65 LmnStatus_t MAG3110Write( uint8_t addr, uint8_t data );
75 LmnStatus_t MAG3110WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size );
84 LmnStatus_t MAG3110Read( uint8_t addr, uint8_t *data );
94 LmnStatus_t MAG3110ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size );
101 void MAG3110SetDeviceAddr( uint8_t addr );
Dpam7q.h38 void PAM7QSetDeviceAddr( uint8_t addr );
42 uint8_t PAM7QWrite( uint8_t addr, uint8_t data );
44 uint8_t PAM7QWriteBuffer( uint8_t addr, uint8_t *data, uint8_t size );
46 uint8_t PAM7QRead( uint8_t addr, uint8_t *data );
48 uint8_t PAM7QReadBuffer( uint8_t addr, uint8_t *data, uint8_t size );
Dsx9500.h76 uint8_t SX9500Write( uint8_t addr, uint8_t data );
86 uint8_t SX9500WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size );
95 uint8_t SX9500Read( uint8_t addr, uint8_t *data );
105 uint8_t SX9500ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size );
112 void SX9500SetDeviceAddr( uint8_t addr );
Dsx1509.h176 LmnStatus_t SX1509Write( uint8_t addr, uint8_t data );
186 LmnStatus_t SX1509WriteBuffer( uint8_t addr, uint8_t *data, uint8_t size );
195 LmnStatus_t SX1509Read( uint8_t addr, uint8_t *data );
205 LmnStatus_t SX1509ReadBuffer( uint8_t addr, uint8_t *data, uint8_t size );
212 void SX1509SetDeviceAddr( uint8_t addr );
/loramac-node-2.7.6/src/boards/mcu/saml21/cmsis/
Dcore_cmInstr.h566 __attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) in __LDREXB() argument
571 __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXB()
576 __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXB()
589 __attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) in __LDREXH() argument
594 __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXH()
599 __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXH()
612 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) in __LDREXW() argument
616 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXW()
630 …ute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) in __STREXB() argument
634 __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); in __STREXB()
[all …]
/loramac-node-2.7.6/src/system/
Di2c.c108 LmnStatus_t I2cWriteMem( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t data ) in I2cWriteMem() argument
112 if( I2cMcuWriteMemBuffer( obj, deviceAddr, addr, &data, 1 ) == LMN_STATUS_ERROR ) in I2cWriteMem()
115 if( I2cMcuWriteMemBuffer( obj, deviceAddr, addr, &data, 1 ) == LMN_STATUS_ERROR ) in I2cWriteMem()
135 LmnStatus_t I2cWriteMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, uint… in I2cWriteMemBuffer() argument
139 if( I2cMcuWriteMemBuffer( obj, deviceAddr, addr, buffer, size ) == LMN_STATUS_ERROR ) in I2cWriteMemBuffer()
142 if( I2cMcuWriteMemBuffer( obj, deviceAddr, addr, buffer, size ) == LMN_STATUS_ERROR ) in I2cWriteMemBuffer()
186 LmnStatus_t I2cReadMem( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *data ) in I2cReadMem() argument
190 return( I2cMcuReadMemBuffer( obj, deviceAddr, addr, data, 1 ) ); in I2cReadMem()
198 LmnStatus_t I2cReadMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, uint1… in I2cReadMemBuffer() argument
202 return( I2cMcuReadMemBuffer( obj, deviceAddr, addr, buffer, size ) ); in I2cReadMemBuffer()
Di2c.h102 LmnStatus_t I2cWriteMem( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t data );
113 LmnStatus_t I2cWriteMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, uint…
142 LmnStatus_t I2cReadMem( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *data );
153 LmnStatus_t I2cReadMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, uint1…
/loramac-node-2.7.6/src/boards/NucleoL152/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( FLASH_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
58 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuReadBuffer()
62 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
66 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/SKiM881AXL/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( DATA_EEPROM_BASE + addr ) >= DATA_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( DATA_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
58 assert_param( ( DATA_EEPROM_BASE + addr ) >= DATA_EEPROM_BASE ); in EepromMcuReadBuffer()
62 memcpy1( buffer, ( uint8_t* )( DATA_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
66 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/SKiM980A/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( FLASH_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
57 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
59 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuReadBuffer()
63 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
67 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/NucleoL073/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( DATA_EEPROM_BASE + addr ) >= DATA_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( DATA_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
58 assert_param( ( DATA_EEPROM_BASE + addr ) >= DATA_EEPROM_BASE ); in EepromMcuReadBuffer()
62 memcpy1( buffer, ( uint8_t* )( DATA_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
66 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/SKiM880B/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( FLASH_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
58 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuReadBuffer()
62 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
66 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/NAMote72/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( FLASH_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
58 assert_param( ( FLASH_EEPROM_BASE + addr ) >= FLASH_EEPROM_BASE ); in EepromMcuReadBuffer()
62 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
66 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/B-L072Z-LRWAN1/
Deeprom-board.c27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
31 assert_param( ( DATA_EEPROM_BASE + addr ) >= DATA_EEPROM_BASE ); in EepromMcuWriteBuffer()
41 ( DATA_EEPROM_BASE + addr + i ), in EepromMcuWriteBuffer()
56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
58 assert_param( ( DATA_EEPROM_BASE + addr ) >= DATA_EEPROM_BASE ); in EepromMcuReadBuffer()
62 memcpy1( buffer, ( uint8_t* )( DATA_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
66 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/mcu/stm32/cmsis/
Dcmsis_gcc.h565 __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) in __LDREXB() argument
570 __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXB()
575 __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXB()
587 __attribute__((always_inline)) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) in __LDREXH() argument
592 __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXH()
597 __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXH()
609 __attribute__((always_inline)) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) in __LDREXW() argument
613 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXW()
626 …tribute__((always_inline)) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) in __STREXB() argument
630 __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); in __STREXB()
[all …]
/loramac-node-2.7.6/src/boards/NucleoL476/
Deeprom-board.c96 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
107 eeStatus |= EE_WriteVariable8bits( EepromVirtualAddress[addr + i], buffer[i] ); in EepromMcuWriteBuffer()
131 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
140 if( EE_ReadVariable8bits( EepromVirtualAddress[addr + i], buffer + i ) != EE_OK ) in EepromMcuReadBuffer()
152 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument
/loramac-node-2.7.6/src/boards/mcu/saml21/hal/src/
Dhal_i2c_m_sync.c51 msg.addr = i2c->slave_addr; in i2c_m_sync_read()
74 msg.addr = i2c->slave_addr; in i2c_m_sync_write()
146 int32_t i2c_m_sync_set_slaveaddr(struct i2c_m_sync_desc *i2c, int16_t addr, int32_t addr_len) in i2c_m_sync_set_slaveaddr() argument
148 return i2c->slave_addr = (addr & 0x3ff) | (addr_len & I2C_M_TEN); in i2c_m_sync_set_slaveaddr()
167 msg.addr = i2c->slave_addr; in i2c_m_sync_cmd_write()
201 msg.addr = i2c->slave_addr; in i2c_m_sync_cmd_read()
/loramac-node-2.7.6/src/boards/
Deeprom-board.h42 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size );
52 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size );
61 void EepromMcuSetDeviceAddr( uint8_t addr );
/loramac-node-2.7.6/src/boards/SAMR34/
Deeprom-board.c26 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument
33 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument
38 void EepromMcuSetDeviceAddr( uint8_t addr ) in EepromMcuSetDeviceAddr() argument

123