
#ifndef __MCF8316A_H__
#define __MCF8316A_H__

#ifdef __SUPPORT_MCF8316A

#include "common.h"


#ifdef __cplusplus
extern "C" {
#endif

#define RegisterMax    25

typedef struct
{
    uint08 Control_0;
    uint08 Control_1;
    uint08 Control_2;
    uint08 Data_0; //LSB
    uint08 Data_1; //MSB
} DataFormat_16bit;

typedef struct
{
    uint08 Control_0;
    uint08 Control_1;
    uint08 Control_2;
    uint08 Data_0; //LSB
    uint08 Data_1;
    uint08 Data_2;
    uint08 Data_3; //MSB
} DataFormat_32bit;

typedef struct
{
    uint08 Control_0;
    uint08 Control_1;
    uint08 Control_2;
    uint08 Data_0; //LSB
    uint08 Data_1;
    uint08 Data_2;
    uint08 Data_3;
    uint08 Data_4;
    uint08 Data_5;
    uint08 Data_6;
    uint08 Data_7; //MSB
} DataFormat_64bit;


int08 dvMCF8316A_ByteWrite(uint32  byte_count, uint08 *data_buffer_ptr);
int08 dvMCF8316A_Init(void);

#ifdef __cplusplus
}
#endif

#endif

#endif

