Go to the source code of this file.
|
| __CODE int8_t | dat [20] = {0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB} |
| |
◆ AT24C_ADDR
◆ GPIO_Init()
Definition at line 46 of file at24c32_stc8h3k.c.
47{
48
50
52}
#define GPIO_P3_SetMode(__PINS__, __MODE__)
◆ I2C_Init()
I2C clock = FOSC / 2 / (prescaler * 2 + 4)
Definition at line 32 of file at24c32_stc8h3k.c.
33{
34
40
42
44}
#define I2C_SetClockPrescaler(__DIV__)
#define I2C_SetWorkMode(__MODE__)
#define I2C_SetEnabled(__STATE__)
#define I2C_SetPort(__ALTER_PORT__)
◆ main()
Definition at line 54 of file at24c32_stc8h3k.c.
55{
57
59
61
65
66 while(1)
67 {
68 for (offset = 0; offset < 4; offset++)
69 {
71 for (
i = 0;
i < 6;
i++)
72 {
75 }
78 }
81 }
82}
uint8_t I2C_Write16BitAddr(uint8_t devAddr, uint16_t memAddr, uint8_t *dat, uint16_t size)
uint8_t I2C_Read16BitAddr(uint8_t devAddr, uint16_t memAddr, uint8_t *buf, uint16_t size)
void SYS_Delay(uint16_t t)
void UART1_TxChar(char dat)
void UART1_TxString(uint8_t *str)
@ UART1_BaudSource_Timer2
void UART1_TxHex(uint8_t hex)
void UART1_Config8bitUart(UART1_BaudSource_t baudSource, HAL_State_t _1TMode, uint32_t baudrate)
◆ dat
| __CODE int8_t dat[20] = {0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB} |