package pcf8563

// Registers
const (
	PCF8563_ADDR = 0x51 // R:A3 W:A2

	I2C_SPEED_STANDARD = 100000
	I2C_SPEED_DOUBLE   = 200000

	RTC_CTRL_STOP = 0x20
	RTC_CTRL_TITP = 0x10
	RTC_CTRL_AF   = 0x08
	RTC_CTRL_TF   = 0x04
	RTC_CTRL_AIE  = 0x02
	RTC_CTRL_TIE  = 0x01

	RTC_COT_DISABLE = 0x00
	RTC_COT_32KHZ   = 0x80
	RTC_COT_1KHZ    = 0x81
	RTC_COT_32HZ    = 0x82
	RTC_COT_1HZ     = 0x83

	RTC_TIMER_DISABLE = 0x00
	RTC_TIMER_4KHZ    = 0x80
	RTC_TIMER_64HZ    = 0x81
	RTC_TIMER_1S      = 0x82
	RTC_TIMER_60S     = 0x83

	RTC_ALARM_DISABLE = 0x80
	RTC_ALARM_ENABLE  = 0x00
)
