//*****************************************************************************
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be 
// copied or disclosed except in accordance with the terms of that 
// agreement
//
// Copyright 2016 Intel Corporation. All Rights Reserved.
//*****************************************************************************

// The EEPROM is cat24c16

#ifndef __EEPROM_CAT24C16__
#define __EEPROM_CAT24C16__

// [TODO] EEPROM

#define CAT24C16_PAGE_SIZE  256
#define CAT24C16_PAGE_NUM   8  
#define CAT24C16_SIZE     (CAT24C_PAGE_SIZE * CAT24C16_PAGE_NUM)
#define CAT24C16_BULK_SIZE  16
#define CAT24C16_BULK_NUM   (CAT24C16_PAGE_SIZE / CAT24C16_BULK_SIZE)
#define CAT24C16_ADDR_MIN   0
#define CAT24C16_ADDR_MAX   (CAT24C16_SIZE - 1)

NTSTATUS
Cmd_Cat24c16Write(
    PNVM_CONTEXT SensorCtx,
    UINT16 Addr,
    UINT8* pData,
    INT32 Length
    );

NTSTATUS
Cmd_Cat24c16Read(
    PNVM_CONTEXT SensorCtx,
    UINT16 Addr,
    UINT8* pData,
    INT32 Length
    );

#endif __EEPROM_CAT24C16__
