/loramac-node-3.4.0/src/boards/mcu/saml21/hal/src/ |
D | hal_i2c_m_sync.c | 48 struct _i2c_m_msg msg; in i2c_m_sync_read() local 51 msg.addr = i2c->slave_addr; in i2c_m_sync_read() 52 msg.len = n; in i2c_m_sync_read() 53 msg.flags = I2C_M_STOP | I2C_M_RD; in i2c_m_sync_read() 54 msg.buffer = buf; in i2c_m_sync_read() 56 ret = _i2c_m_sync_transfer(&i2c->device, &msg); in i2c_m_sync_read() 71 struct _i2c_m_msg msg; in i2c_m_sync_write() local 74 msg.addr = i2c->slave_addr; in i2c_m_sync_write() 75 msg.len = n; in i2c_m_sync_write() 76 msg.flags = I2C_M_STOP; in i2c_m_sync_write() [all …]
|
D | hal_spi_m_sync.c | 187 struct spi_msg msg; in spi_m_sync_transfer() local 191 msg.txbuf = p_xfer->txbuf; in spi_m_sync_transfer() 192 msg.rxbuf = p_xfer->rxbuf; in spi_m_sync_transfer() 193 msg.size = p_xfer->size; in spi_m_sync_transfer() 195 return _spi_m_sync_trans(&spi->dev, &msg); in spi_m_sync_transfer()
|
/loramac-node-3.4.0/src/boards/mcu/saml21/hpl/sercom/ |
D | hpl_sercom.c | 941 …nt32_t _sercom_i2c_sync_analyse_flags(void *const hw, uint32_t flags, struct _i2c_m_msg *const msg) in _sercom_i2c_sync_analyse_flags() argument 950 msg->flags |= I2C_M_FAIL; in _sercom_i2c_sync_analyse_flags() 951 msg->flags &= ~I2C_M_BUSY; in _sercom_i2c_sync_analyse_flags() 962 if (msg->len > 0) { in _sercom_i2c_sync_analyse_flags() 963 msg->flags |= I2C_M_FAIL; in _sercom_i2c_sync_analyse_flags() 966 if (msg->flags & I2C_M_STOP) { in _sercom_i2c_sync_analyse_flags() 970 msg->flags &= ~I2C_M_BUSY; in _sercom_i2c_sync_analyse_flags() 975 if (msg->flags & I2C_M_TEN) { in _sercom_i2c_sync_analyse_flags() 977 … ((((msg->addr & TEN_ADDR_MASK) >> 8) | TEN_ADDR_FRAME) << 1) | I2C_M_RD in _sercom_i2c_sync_analyse_flags() 979 msg->flags &= ~I2C_M_TEN; in _sercom_i2c_sync_analyse_flags() [all …]
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/ |
D | stm32l0xx_hal_pcd_ex.c | 272 __weak void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) in HAL_PCDEx_LPM_Callback() argument 276 UNUSED(msg); in HAL_PCDEx_LPM_Callback() 289 __weak void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg) in HAL_PCDEx_BCD_Callback() argument 293 UNUSED(msg); in HAL_PCDEx_BCD_Callback()
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/ |
D | stm32l0xx_hal_pcd_ex.h | 92 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); 93 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_hal_pcd_ex.h | 83 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); 84 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
|
D | stm32l4xx_hal_pcd.h | 172 …void (* BCDCallback)(struct __PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); /*!< USB OTG … 173 …void (* LPMCallback)(struct __PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); /*!< USB OTG … 343 typedef void (*pPCD_LpmCallbackTypeDef)(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); /*… 344 typedef void (*pPCD_BcdCallbackTypeDef)(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); /*…
|
/loramac-node-3.4.0/src/boards/mcu/saml21/hal/include/ |
D | hpl_i2c_m_sync.h | 95 struct _i2c_m_msg msg; member 165 int32_t _i2c_m_sync_transfer(struct _i2c_m_sync_device *const i2c_dev, struct _i2c_m_msg *msg);
|
D | hpl_spi_m_sync.h | 164 int32_t _spi_m_sync_trans(struct _spi_m_sync_dev *dev, const struct spi_msg *msg);
|
D | hal_i2c_m_sync.h | 202 int32_t i2c_m_sync_transfer(struct i2c_m_sync_desc *const i2c, struct _i2c_m_msg *msg);
|
D | hpl_i2c_m_async.h | 144 int32_t _i2c_m_async_transfer(struct _i2c_m_async_device *const i2c_dev, struct _i2c_m_msg *msg);
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/ |
D | stm32l4xx_hal_pcd_ex.c | 519 __weak void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) in HAL_PCDEx_LPM_Callback() argument 523 UNUSED(msg); in HAL_PCDEx_LPM_Callback() 536 __weak void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg) in HAL_PCDEx_BCD_Callback() argument 540 UNUSED(msg); in HAL_PCDEx_BCD_Callback()
|
/loramac-node-3.4.0/src/mac/ |
D | LoRaMacCrypto.c | 338 static LoRaMacCryptoStatus_t ComputeCmacB0( uint8_t* msg, uint16_t len, KeyIdentifier_t keyID, bool… in ComputeCmacB0() argument 340 if( ( msg == 0 ) || ( cmac == 0 ) ) in ComputeCmacB0() 354 if( SecureElementComputeAesCmac( micBuff, msg, len, keyID, cmac ) != SECURE_ELEMENT_SUCCESS ) in ComputeCmacB0() 374 static LoRaMacCryptoStatus_t VerifyCmacB0( uint8_t* msg, uint16_t len, KeyIdentifier_t keyID, bool … in VerifyCmacB0() argument 376 if( msg == 0 ) in VerifyCmacB0() 392 memcpy1( ( micBuff + MIC_BLOCK_BX_SIZE ), msg, len ); in VerifyCmacB0() 482 static LoRaMacCryptoStatus_t ComputeCmacB1( uint8_t* msg, uint16_t len, KeyIdentifier_t keyID, bool… in ComputeCmacB1() argument 484 if( ( msg == 0 ) || ( cmac == 0 ) ) in ComputeCmacB1() 498 if( SecureElementComputeAesCmac( micBuff, msg, len, keyID, cmac ) != SECURE_ELEMENT_SUCCESS ) in ComputeCmacB1()
|