This module contains NMC1000 bus APIs implementation.
Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | MAX_TRX_CFG_SZ 8 |
Functions | |
sint8 | nm_bus_iface_deinit (void) |
Deinitialize bus interface. More... | |
sint8 | nm_bus_iface_init (void *pvInitVal) |
sint8 | nm_bus_iface_reconfigure (void *ptr) |
sint8 | nm_bus_reset (void) |
reset bus interface More... | |
sint8 | nm_read_block (uint32 u32Addr, uint8 *puBuf, uint32 u32Sz) |
uint32 | nm_read_reg (uint32 u32Addr) |
sint8 | nm_read_reg_with_ret (uint32 u32Addr, uint32 *pu32RetVal) |
sint8 | nm_write_block (uint32 u32Addr, uint8 *puBuf, uint32 u32Sz) |
sint8 | nm_write_reg (uint32 u32Addr, uint32 u32Val) |
static sint8 | p_nm_read_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) |
static sint8 | p_nm_write_block (uint32 u32Addr, uint8 *puBuf, uint16 u16Sz) |
#define MAX_TRX_CFG_SZ 8 |
Referenced by nm_read_block(), and nm_write_block().
sint8 nm_bus_iface_deinit | ( | void | ) |
Deinitialize bus interface.
References M2M_SUCCESS, and nm_bus_deinit().
sint8 nm_bus_iface_init | ( | void * | pvInitVal | ) |
References M2M_SUCCESS, and nm_bus_init().
sint8 nm_bus_iface_reconfigure | ( | void * | ptr | ) |
References M2M_ERR_BUS_FAIL, M2M_SUCCESS, and nm_uart_reconfigure().
sint8 nm_bus_reset | ( | void | ) |
reset bus interface
Reset bus interface.
References M2M_SUCCESS, and nm_spi_reset().
References nm_i2c_read_reg(), nm_spi_read_reg(), and nm_uart_read_reg().
References nm_i2c_read_reg_with_ret(), nm_spi_read_reg_with_ret(), and nm_uart_read_reg_with_ret().
References nm_i2c_write_reg(), nm_spi_write_reg(), and nm_uart_write_reg().
References nm_i2c_read_block(), nm_spi_read_block(), and nm_uart_read_block().
Referenced by nm_read_block().
References nm_i2c_write_block(), nm_spi_write_block(), and nm_uart_write_block().
Referenced by nm_write_block().