![background image](http://html1.mh-extra.com/html/ibase-technology/mbn800-8l/mbn800-8l_user-manual_3310948062.webp)
Appendix
MBN800 Series User Manual
55
C. Digital I/O Sample Code
1. DIO Sample Code: The file NCT5523D.H
//---------------------------------------------------------------------------
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------------
#ifndef __NCT5523D_H
#define __NCT5523D_H
1
//---------------------------------------------------------------------------
#define
NCT5523D_INDEX_PORT
(NCT5523D_BASE)
#define
NCT5523D_DATA_PORT
(NCT5521)
//---------------------------------------------------------------------------
#define
NCT5523D_REG_LD
0x07
//---------------------------------------------------------------------------
#define NCT5523D_UNLOCK
0x87
#define
NCT5523D_LOCK
0xAA
//---------------------------------------------------------------------------
unsigned int Init_NCT5523D(void);
void Set_NCT5523D_LD( unsigned char);
void Set_NCT5523D_Reg( unsigned char, unsigned char);
unsigned char Get_NCT5523D_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif
//__NCT5523D_H