/hal_atmel-3.6.0/asf/common/components/wifi/winc1500/driver/source/ |
D | nmbus.c | 127 uint32 nm_read_reg(uint32 u32Addr) in nm_read_reg() argument 130 return nm_uart_read_reg(u32Addr); in nm_read_reg() 132 return nm_spi_read_reg(u32Addr); in nm_read_reg() 134 return nm_i2c_read_reg(u32Addr); in nm_read_reg() 153 sint8 nm_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal) in nm_read_reg_with_ret() argument 156 return nm_uart_read_reg_with_ret(u32Addr,pu32RetVal); in nm_read_reg_with_ret() 158 return nm_spi_read_reg_with_ret(u32Addr,pu32RetVal); in nm_read_reg_with_ret() 160 return nm_i2c_read_reg_with_ret(u32Addr,pu32RetVal); in nm_read_reg_with_ret() 178 sint8 nm_write_reg(uint32 u32Addr, uint32 u32Val) in nm_write_reg() argument 181 return nm_uart_write_reg(u32Addr,u32Val); in nm_write_reg() [all …]
|
D | nmi2c.c | 62 sint8 nm_i2c_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal) in nm_i2c_read_reg_with_ret() argument 69 if(u32Addr < 0xff) { /* clockless i2c */ in nm_i2c_read_reg_with_ret() 71 b[1] = (uint8)(u32Addr); in nm_i2c_read_reg_with_ret() 76 b[1] = (uint8)(u32Addr >> 24); in nm_i2c_read_reg_with_ret() 77 b[2] = (uint8)(u32Addr >> 16); in nm_i2c_read_reg_with_ret() 78 b[3] = (uint8)(u32Addr >> 8); in nm_i2c_read_reg_with_ret() 79 b[4] = (uint8)(u32Addr); in nm_i2c_read_reg_with_ret() 120 uint32 nm_i2c_read_reg(uint32 u32Addr) in nm_i2c_read_reg() argument 123 nm_i2c_read_reg_with_ret(u32Addr, &val); in nm_i2c_read_reg() 139 sint8 nm_i2c_write_reg(uint32 u32Addr, uint32 u32Val) in nm_i2c_write_reg() argument [all …]
|
D | nmuart.c | 113 sint8 nm_uart_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal) in nm_uart_read_reg_with_ret() argument 126 b[5] = (uint8)(u32Addr & 0x000000ff); in nm_uart_read_reg_with_ret() 127 b[6] = (uint8)((u32Addr & 0x0000ff00)>>8); in nm_uart_read_reg_with_ret() 128 b[7] = (uint8)((u32Addr & 0x00ff0000)>>16); in nm_uart_read_reg_with_ret() 129 b[8] = (uint8)((u32Addr & 0xff000000)>>24); in nm_uart_read_reg_with_ret() 196 uint32 nm_uart_read_reg(uint32 u32Addr) in nm_uart_read_reg() argument 199 nm_uart_read_reg_with_ret(u32Addr , &val); in nm_uart_read_reg() 215 sint8 nm_uart_write_reg(uint32 u32Addr, uint32 u32Val) in nm_uart_write_reg() argument 227 b[5] = (uint8)(u32Addr & 0x000000ff); in nm_uart_write_reg() 228 b[6] = (uint8)((u32Addr & 0x0000ff00)>>8); in nm_uart_write_reg() [all …]
|
D | nmi2c.h | 54 uint32 nm_i2c_read_reg(uint32 u32Addr); 65 sint8 nm_i2c_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal); 76 sint8 nm_i2c_write_reg(uint32 u32Addr, uint32 u32Val); 89 sint8 nm_i2c_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz); 102 sint8 nm_i2c_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz);
|
D | nmuart.h | 60 uint32 nm_uart_read_reg(uint32 u32Addr); 71 sint8 nm_uart_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal); 82 sint8 nm_uart_write_reg(uint32 u32Addr, uint32 u32Val); 95 sint8 nm_uart_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz); 108 sint8 nm_uart_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz);
|
D | nmspi.h | 78 uint32 nm_spi_read_reg(uint32 u32Addr); 89 sint8 nm_spi_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal); 100 sint8 nm_spi_write_reg(uint32 u32Addr, uint32 u32Val); 113 sint8 nm_spi_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz); 126 sint8 nm_spi_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz);
|
D | nmbus.h | 90 uint32 nm_read_reg(uint32 u32Addr); 101 sint8 nm_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal); 112 sint8 nm_write_reg(uint32 u32Addr, uint32 u32Val); 125 sint8 nm_read_block(uint32 u32Addr, uint8 *puBuf, uint32 u32Sz); 138 sint8 nm_write_block(uint32 u32Addr, uint8 *puBuf, uint32 u32Sz);
|
D | m2m_crypto.c | 223 uint32 u32Addr = u32WriteAddr; in m2m_crypto_sha256_hash_update() local 245 nm_write_block(u32Addr, pstrSHA256->au8CurrentBlock, SHA_BLOCK_SIZE); in m2m_crypto_sha256_hash_update() 246 u32Addr += SHA_BLOCK_SIZE; in m2m_crypto_sha256_hash_update() 262 nm_write_block(u32Addr, pu8Data, (uint16)(u32NBlocks * SHA_BLOCK_SIZE)); in m2m_crypto_sha256_hash_update() 318 uint32 u32Addr = u32WriteAddr; in m2m_crypto_sha256_hash_finish() local 354 nm_write_block(u32Addr, pstrSHA256->au8CurrentBlock, SHA_BLOCK_SIZE); in m2m_crypto_sha256_hash_finish() 355 u32Addr += SHA_BLOCK_SIZE; in m2m_crypto_sha256_hash_finish() 364 nm_write_block(u32Addr, pstrSHA256->au8CurrentBlock, SHA_BLOCK_SIZE); in m2m_crypto_sha256_hash_finish() 730 static void m2m_crypto_cb(uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr) in m2m_crypto_cb() argument 737 if (hif_receive(u32Addr, (uint8*) &strCtxt,sizeof(tstrM2mSha256Ctxt), 0) == M2M_SUCCESS) in m2m_crypto_cb() [all …]
|
D | m2m_wifi.c | 90 static void m2m_wifi_cb(uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr) in m2m_wifi_cb() argument 96 if (hif_receive(u32Addr, (uint8*) &strState,sizeof(tstrM2mWifiStateChanged), 0) == M2M_SUCCESS) in m2m_wifi_cb() 105 if (hif_receive(u32Addr, (uint8*) &strSysTime,sizeof(tstrSystemTime), 0) == M2M_SUCCESS) in m2m_wifi_cb() 114 if(hif_receive(u32Addr, (uint8*)&strConnInfo, sizeof(tstrM2MConnInfo), 1) == M2M_SUCCESS) in m2m_wifi_cb() 123 if (hif_receive(u32Addr, rx_buf, 4, 1) == M2M_SUCCESS) in m2m_wifi_cb() 135 if (hif_receive(u32Addr, (uint8 *)&strIpConfig, sizeof(tstrM2MIPConfig), 0) == M2M_SUCCESS) in m2m_wifi_cb() 145 if(hif_receive(u32Addr, (uint8*)&strWps, sizeof(tstrM2MWPSInfo), 0) == M2M_SUCCESS) in m2m_wifi_cb() 154 if(hif_receive(u32Addr, (uint8 *)&u32ConflictedIP, sizeof(u32ConflictedIP), 0) == M2M_SUCCESS) in m2m_wifi_cb() 167 if(hif_receive(u32Addr, (uint8*)&strState, sizeof(tstrM2mScanDone), 0) == M2M_SUCCESS) in m2m_wifi_cb() 177 if(hif_receive(u32Addr, (uint8*)&strScanResult, sizeof(tstrM2mWifiscanResult), 0) == M2M_SUCCESS) in m2m_wifi_cb() [all …]
|
D | m2m_hif.c | 131 static void m2m_hif_cb(uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr) in m2m_hif_cb() argument 606 sint8 hif_receive(uint32 u32Addr, uint8 *pu8Buf, uint16 u16Sz, uint8 isDone) in hif_receive() argument 609 if((u32Addr == 0)||(pu8Buf == NULL) || (u16Sz == 0)) in hif_receive() 630 …if((u32Addr < gstrHifCxt.u32RxAddr)||((u32Addr + u16Sz)>(gstrHifCxt.u32RxAddr + gstrHifCxt.u32RxSi… in hif_receive() 638 ret = nm_read_block(u32Addr, pu8Buf, u16Sz); in hif_receive() 642 if((((gstrHifCxt.u32RxAddr + gstrHifCxt.u32RxSize) - (u32Addr + u16Sz)) <= 0) || isDone) in hif_receive()
|
D | m2m_hif.h | 92 typedef void (*tpfHifCallBack)(uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr); 151 NMI_API sint8 hif_receive(uint32 u32Addr, uint8 *pu8Buf, uint16 u16Sz, uint8 isDone);
|
D | nmspi.c | 1285 uint32 nm_spi_read_reg(uint32 u32Addr) in nm_spi_read_reg() argument 1289 spi_read_reg(u32Addr, &u32Val); in nm_spi_read_reg() 1306 sint8 nm_spi_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal) in nm_spi_read_reg_with_ret() argument 1310 s8Ret = spi_read_reg(u32Addr,pu32RetVal); in nm_spi_read_reg_with_ret() 1330 sint8 nm_spi_write_reg(uint32 u32Addr, uint32 u32Val) in nm_spi_write_reg() argument 1334 s8Ret = spi_write_reg(u32Addr, u32Val); in nm_spi_write_reg() 1356 sint8 nm_spi_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) in nm_spi_read_block() argument 1360 s8Ret = nm_spi_read(u32Addr, puBuf, u16Sz); in nm_spi_read_block() 1382 sint8 nm_spi_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) in nm_spi_write_block() argument 1386 s8Ret = nm_spi_write(u32Addr, puBuf, u16Sz); in nm_spi_write_block()
|
D | m2m_ota.c | 80 static void m2m_ota_cb(uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr) in m2m_ota_cb() argument 87 ret = hif_receive(u32Addr,(uint8*)&strOtaUpdateInfo,sizeof(tstrOtaUpdateInfo),0); in m2m_ota_cb() 98 ret = hif_receive(u32Addr, (uint8*) &strOtaUpdateStatusResp,sizeof(tstrOtaUpdateStatusResp), 0); in m2m_ota_cb()
|
/hal_atmel-3.6.0/asf/common/components/wifi/winc1500/spi_flash/include/ |
D | spi_flash.h | 163 sint8 spi_flash_read(uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz);
|
/hal_atmel-3.6.0/asf/common/components/wifi/winc1500/spi_flash/source/ |
D | spi_flash.c | 404 static sint8 spi_flash_read_internal(uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz) in spi_flash_read_internal() argument 408 ret = spi_flash_load_to_cortus_mem(HOST_SHARE_MEM_BASE, u32Addr, u32Sz); in spi_flash_read_internal()
|