This module contains NMC1000 I2C protocol bus APIs implementation.
Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
#include "common/include/nm_common.h"
#include "nmi2c.h"
#include "bus_wrapper/include/nm_bus_wrapper.h"
Functions | |
sint8 | nm_i2c_read_block (uint32 u32Addr, uint8 *pu8Buf, uint16 u16Sz) |
uint32 | nm_i2c_read_reg (uint32 u32Addr) |
sint8 | nm_i2c_read_reg_with_ret (uint32 u32Addr, uint32 *pu32RetVal) |
sint8 | nm_i2c_write_block (uint32 u32Addr, uint8 *pu8Buf, uint16 u16Sz) |
sint8 | nm_i2c_write_reg (uint32 u32Addr, uint32 u32Val) |
References M2M_ERR, M2M_ERR_BUS_FAIL, M2M_SUCCESS, nm_bus_ioctl(), NM_BUS_IOCTL_R, NM_BUS_IOCTL_W, tstrNmI2cDefault::pu8Buf, and tstrNmI2cDefault::u16Sz.
Referenced by p_nm_read_block().
References nm_i2c_read_reg_with_ret().
Referenced by nm_read_reg().
References M2M_ERR, M2M_ERR_BUS_FAIL, M2M_SUCCESS, nm_bus_ioctl(), NM_BUS_IOCTL_R, NM_BUS_IOCTL_W, tstrNmI2cDefault::pu8Buf, and tstrNmI2cDefault::u16Sz.
Referenced by nm_i2c_read_reg(), and nm_read_reg_with_ret().
References M2M_ERR, M2M_ERR_BUS_FAIL, M2M_SUCCESS, nm_bus_ioctl(), NM_BUS_IOCTL_W_SPECIAL, tstrNmI2cSpecial::pu8Buf1, tstrNmI2cSpecial::pu8Buf2, tstrNmI2cSpecial::u16Sz1, and tstrNmI2cSpecial::u16Sz2.
Referenced by p_nm_write_block().
References M2M_ERR, M2M_ERR_BUS_FAIL, M2M_SUCCESS, nm_bus_ioctl(), NM_BUS_IOCTL_W, tstrNmI2cDefault::pu8Buf, and tstrNmI2cDefault::u16Sz.
Referenced by nm_write_reg().