You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
530 B

2 weeks ago
#ifndef DIPSWITCH_H
#define DIPSWITCH_H
#include "r_cg_macrodriver.h"
#include "r_cg_port.h" // P8, PM8 ����
#ifdef __cplusplus
extern "C" {
#endif
/**
* DIP Switch ʱȭ (Է )
*/
void DipSwitch_Init(void);
/**
* DIP Switch(5bit) о ּ(1~32) ȯ ȯ
* - ȸ: Pull-up, DIP ON -> GND (Active-Low)
* - : P8.1~P8.5 (ADD_1~ADD_5)
*/
/**
* (ɼ) ׿: DIP 5bit(0~31) ״ ȯ
* - ADD_1 LSB
*/
1 week ago
uint8_t DipSwitch_ReadAddr_0to31(void);
2 weeks ago
#ifdef __cplusplus
}
#endif
#endif /* DIPSWITCH_H */