/loramac-node-3.4.0/src/system/ |
D | i2c.c | 81 LmnStatus_t I2cWriteBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cWriteBuffer() argument 85 if( I2cMcuWriteBuffer( obj, deviceAddr, buffer, size ) == LMN_STATUS_ERROR ) in I2cWriteBuffer() 88 if( I2cMcuWriteBuffer( obj, deviceAddr, buffer, size ) == LMN_STATUS_ERROR ) in I2cWriteBuffer() 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() 174 LmnStatus_t I2cReadBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cReadBuffer() argument 178 return( I2cMcuReadBuffer( obj, deviceAddr, buffer, size ) ); in I2cReadBuffer() 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()
|
/loramac-node-3.4.0/src/boards/SAMR34/ |
D | i2c-board.c | 76 LmnStatus_t I2cMcuWriteBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuWriteBuffer() argument 79 if( io_write( &I2C_INSTANCE.io, buffer, size ) == size ) in I2cMcuWriteBuffer() 89 LmnStatus_t I2cMcuReadBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuReadBuffer() argument 92 if( io_read( &I2C_INSTANCE.io, buffer, size ) == size ) in I2cMcuReadBuffer() 102 LmnStatus_t I2cMcuWriteMemBuffer( I2c_t* obj, uint8_t deviceAddr, uint16_t addr, uint8_t* buffer, u… in I2cMcuWriteMemBuffer() argument 105 if( i2c_m_sync_cmd_write( &I2C_INSTANCE, addr, buffer, size ) == size ) in I2cMcuWriteMemBuffer() 115 LmnStatus_t I2cMcuReadMemBuffer( I2c_t* obj, uint8_t deviceAddr, uint16_t addr, uint8_t* buffer, ui… in I2cMcuReadMemBuffer() argument 118 if( i2c_m_sync_cmd_read( &I2C_INSTANCE, addr, buffer, size ) == size ) in I2cMcuReadMemBuffer()
|
/loramac-node-3.4.0/src/boards/mcu/saml21/hal/src/ |
D | hal_i2c_m_sync.c | 54 msg.buffer = buf; in i2c_m_sync_read() 77 msg.buffer = (uint8_t *)buf; in i2c_m_sync_write() 162 int32_t i2c_m_sync_cmd_write(struct i2c_m_sync_desc *i2c, uint8_t reg, uint8_t *buffer, uint8_t len… in i2c_m_sync_cmd_write() argument 170 msg.buffer = ® in i2c_m_sync_cmd_write() 180 msg.buffer = buffer; in i2c_m_sync_cmd_write() 196 int32_t i2c_m_sync_cmd_read(struct i2c_m_sync_desc *i2c, uint8_t reg, uint8_t *buffer, uint8_t leng… in i2c_m_sync_cmd_read() argument 204 msg.buffer = ® in i2c_m_sync_cmd_read() 214 msg.buffer = buffer; in i2c_m_sync_cmd_read()
|
/loramac-node-3.4.0/src/boards/SKiM980A/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 57 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 60 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 63 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
/loramac-node-3.4.0/src/boards/NucleoL152/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 59 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 62 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
D | sx1262mbxcas-board.c | 171 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 192 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 214 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 239 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 265 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | sx1262mbxdas-board.c | 178 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 188 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 199 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 211 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 221 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 233 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 246 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 258 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 272 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 282 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | sx1261mbxbas-board.c | 171 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 192 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 214 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 239 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 265 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | i2c-board.c | 108 LmnStatus_t I2cMcuWriteBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuWriteBuffer() argument 112 …status = ( HAL_I2C_Master_Transmit( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN… in I2cMcuWriteBuffer() 117 LmnStatus_t I2cMcuReadBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuReadBuffer() argument 121 …status = ( HAL_I2C_Master_Receive( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN_… in I2cMcuReadBuffer() 126 LmnStatus_t I2cMcuWriteMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, u… in I2cMcuWriteMemBuffer() argument 139 …status = ( HAL_I2C_Mem_Write( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HA… in I2cMcuWriteMemBuffer() 144 LmnStatus_t I2cMcuReadMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, ui… in I2cMcuReadMemBuffer() argument 157 …status = ( HAL_I2C_Mem_Read( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HAL… in I2cMcuReadMemBuffer()
|
/loramac-node-3.4.0/src/boards/NucleoL073/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 59 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 62 memcpy1( buffer, ( uint8_t* )( DATA_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
D | sx1261mbxbas-board.c | 171 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 192 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 214 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 239 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 265 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | sx1262mbxcas-board.c | 171 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 192 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 214 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 239 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 265 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | sx1262mbxdas-board.c | 178 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 188 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 199 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 211 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 221 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 233 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 246 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 258 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 272 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 282 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | i2c-board.c | 110 LmnStatus_t I2cMcuWriteBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuWriteBuffer() argument 114 …status = ( HAL_I2C_Master_Transmit( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN… in I2cMcuWriteBuffer() 119 LmnStatus_t I2cMcuReadBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuReadBuffer() argument 123 …status = ( HAL_I2C_Master_Receive( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN_… in I2cMcuReadBuffer() 128 LmnStatus_t I2cMcuWriteMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, u… in I2cMcuWriteMemBuffer() argument 141 …status = ( HAL_I2C_Mem_Write( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HA… in I2cMcuWriteMemBuffer() 146 LmnStatus_t I2cMcuReadMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, ui… in I2cMcuReadMemBuffer() argument 159 …status = ( HAL_I2C_Mem_Read( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HAL… in I2cMcuReadMemBuffer()
|
/loramac-node-3.4.0/src/boards/SKiM881AXL/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 59 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 62 memcpy1( buffer, ( uint8_t* )( DATA_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
/loramac-node-3.4.0/src/boards/SKiM880B/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 59 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 62 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
/loramac-node-3.4.0/src/boards/NAMote72/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 59 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 62 memcpy1( buffer, ( uint8_t* )( FLASH_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
D | i2c-board.c | 108 LmnStatus_t I2cMcuWriteBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuWriteBuffer() argument 112 …status = ( HAL_I2C_Master_Transmit( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN… in I2cMcuWriteBuffer() 117 LmnStatus_t I2cMcuReadBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuReadBuffer() argument 121 …status = ( HAL_I2C_Master_Receive( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN_… in I2cMcuReadBuffer() 126 LmnStatus_t I2cMcuWriteMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, u… in I2cMcuWriteMemBuffer() argument 139 …status = ( HAL_I2C_Mem_Write( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HA… in I2cMcuWriteMemBuffer() 144 LmnStatus_t I2cMcuReadMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, ui… in I2cMcuReadMemBuffer() argument 157 …status = ( HAL_I2C_Mem_Read( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HAL… in I2cMcuReadMemBuffer()
|
/loramac-node-3.4.0/src/boards/B-L072Z-LRWAN1/ |
D | eeprom-board.c | 27 LmnStatus_t EepromMcuWriteBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuWriteBuffer() argument 32 assert_param( buffer != NULL ); in EepromMcuWriteBuffer() 42 buffer[i] ) != HAL_OK ) in EepromMcuWriteBuffer() 56 LmnStatus_t EepromMcuReadBuffer( uint16_t addr, uint8_t *buffer, uint16_t size ) in EepromMcuReadBuffer() argument 59 assert_param( buffer != NULL ); in EepromMcuReadBuffer() 62 memcpy1( buffer, ( uint8_t* )( DATA_EEPROM_BASE + addr ), size ); in EepromMcuReadBuffer()
|
/loramac-node-3.4.0/src/boards/NucleoL476/ |
D | sx1261mbxbas-board.c | 171 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 192 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 214 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 239 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 265 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | sx1262mbxcas-board.c | 171 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 181 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 192 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 204 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 214 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 226 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 239 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 251 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 265 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 275 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | sx1262mbxdas-board.c | 178 void SX126xWriteCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xWriteCommand() argument 188 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteCommand() 199 uint8_t SX126xReadCommand( RadioCommands_t command, uint8_t *buffer, uint16_t size ) in SX126xReadCommand() argument 211 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadCommand() 221 void SX126xWriteRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xWriteRegisters() argument 233 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteRegisters() 246 void SX126xReadRegisters( uint16_t address, uint8_t *buffer, uint16_t size ) in SX126xReadRegisters() argument 258 buffer[i] = SpiInOut( &SX126x.Spi, 0 ); in SX126xReadRegisters() 272 void SX126xWriteBuffer( uint8_t offset, uint8_t *buffer, uint8_t size ) in SX126xWriteBuffer() argument 282 SpiInOut( &SX126x.Spi, buffer[i] ); in SX126xWriteBuffer() [all …]
|
D | i2c-board.c | 110 LmnStatus_t I2cMcuWriteBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuWriteBuffer() argument 114 …status = ( HAL_I2C_Master_Transmit( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN… in I2cMcuWriteBuffer() 119 LmnStatus_t I2cMcuReadBuffer( I2c_t *obj, uint8_t deviceAddr, uint8_t *buffer, uint16_t size ) in I2cMcuReadBuffer() argument 123 …status = ( HAL_I2C_Master_Receive( &I2cHandle, deviceAddr, buffer, size, 2000 ) == HAL_OK ) ? LMN_… in I2cMcuReadBuffer() 128 LmnStatus_t I2cMcuWriteMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, u… in I2cMcuWriteMemBuffer() argument 141 …status = ( HAL_I2C_Mem_Write( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HA… in I2cMcuWriteMemBuffer() 146 LmnStatus_t I2cMcuReadMemBuffer( I2c_t *obj, uint8_t deviceAddr, uint16_t addr, uint8_t *buffer, ui… in I2cMcuReadMemBuffer() argument 159 …status = ( HAL_I2C_Mem_Read( &I2cHandle, deviceAddr, addr, memAddSize, buffer, size, 2000 ) == HAL… in I2cMcuReadMemBuffer()
|
/loramac-node-3.4.0/src/boards/mcu/ |
D | utilities.c | 94 uint32_t Crc32( uint8_t *buffer, uint16_t length ) in Crc32() argument 102 if( buffer == NULL ) in Crc32() 109 crc ^= ( uint32_t )buffer[i]; in Crc32() 124 uint32_t Crc32Update( uint32_t crcInit, uint8_t *buffer, uint16_t length ) in Crc32Update() argument 132 if( buffer == NULL ) in Crc32Update() 139 crc ^= ( uint32_t )buffer[i]; in Crc32Update()
|
/loramac-node-3.4.0/src/peripherals/soft-se/ |
D | soft-se.c | 78 static SecureElementStatus_t ComputeCmac( uint8_t* micBxBuffer, uint8_t* buffer, uint16_t size, Key… in ComputeCmac() argument 81 if( ( buffer == NULL ) || ( cmac == NULL ) ) in ComputeCmac() 103 AES_CMAC_Update( aesCmacCtx, buffer, size ); in ComputeCmac() 197 SecureElementStatus_t SecureElementComputeAesCmac( uint8_t* micBxBuffer, uint8_t* buffer, uint16_t … in SecureElementComputeAesCmac() argument 206 return ComputeCmac( micBxBuffer, buffer, size, keyID, cmac ); in SecureElementComputeAesCmac() 209 SecureElementStatus_t SecureElementVerifyAesCmac( uint8_t* buffer, uint16_t size, uint32_t expected… in SecureElementVerifyAesCmac() argument 212 if( buffer == NULL ) in SecureElementVerifyAesCmac() 219 retval = ComputeCmac( NULL, buffer, size, keyID, &compCmac ); in SecureElementVerifyAesCmac() 233 SecureElementStatus_t SecureElementAesEncrypt( uint8_t* buffer, uint16_t size, KeyIdentifier_t keyI… in SecureElementAesEncrypt() argument 236 if( buffer == NULL || encBuffer == NULL ) in SecureElementAesEncrypt() [all …]
|