MAX31341/2 RTC Driver
Diff: Max31341_regs.h
- Revision:
- 0:1efa49a69ff8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Max31341_regs.h Wed Apr 10 17:28:15 2019 +0300 @@ -0,0 +1,68 @@ +/******************************************************************************* + * Copyright (C) 2018 Maxim Integrated Products, Inc., All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES + * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the name of Maxim Integrated + * Products, Inc. shall not be used except as stated in the Maxim Integrated + * Products, Inc. Branding Policy. + * + * The mere transfer of this software does not imply any licenses + * of trade secrets, proprietary technology, copyrights, patents, + * trademarks, maskwork rights, or any other form of intellectual + * property whatsoever. Maxim Integrated Products, Inc. retains all + * ownership rights. + ******************************************************************************* + */ + +#ifndef MAX31341_REGS_H_ +#define MAX31341_REGS_H_ + +enum max31341_register_address { + MAX31341_REG_CONFIG_REG1_ADDR = 0x00, + MAX31341_REG_CONFIG_REG2_ADDR = 0x01, + MAX31341_REG_INT_POLARITY_CONFIG_ADDR = 0x02, + MAX31341_REG_TIMER_CONFIG_ADDR = 0x03, + MAX31341_REG_INT_EN_REG_ADDR = 0x04, + MAX31341_REG_INT_STATUS_REG_ADDR = 0x05, + MAX31341_REG_SECONDS_ADDR = 0x06, + MAX31341_REG_MINUTES_ADDR = 0x07, + MAX31341_REG_HOURS_ADDR = 0x08, + MAX31341_REG_DAY_ADDR = 0x09, + MAX31341_REG_DATE_ADDR = 0x0A, + MAX31341_REG_MONTH_ADDR = 0x0B, + MAX31341_REG_YEAR_ADDR = 0x0C, + MAX31341_REG_ALM1_SEC_ADDR = 0x0D, + MAX31341_REG_ALM1_MIN_ADDR = 0x0E, + MAX31341_REG_ALM1_HRS_ADDR = 0x0F, + MAX31341_REG_ALM1DAY_DATE_ADDR = 0x10, + MAX31341_REG_ALM2_MIN_ADDR = 0x11, + MAX31341_REG_ALM2_HRS_ADDR = 0x12, + MAX31341_REG_ALM2DAY_DATE_ADDR = 0x13, + MAX31341_REG_TIMER_COUNT_ADDR = 0x14, + MAX31341_REG_TIMER_INIT_ADDR = 0x15, + MAX31341_REG_RAM_START_ADDR = 0x16, + MAX31341_REG_RAM_END_ADDR = 0x55, + MAX31341_REG_PWR_MGMT_REG_ADDR = 0x56, + MAX31341_REG_TRICKLE_REG_ADDR = 0x57, + MAX31341_REG_CLOCK_SYNC_REG = 0x58, + MAX31341_REG_END, +}; + +#endif /* MAX31341_REGS_H_ */