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

3 months 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
*/
uint8_t DipSwitch_ReadAddr_0to31(void);
#ifdef __cplusplus
}
#endif
#endif /* DIPSWITCH_H */