92 #define LTC3335_BAUD_RATE 400
93 #define LTC3335_PRESCALER_MAX 15
98 #define LTC3335_DVCC DVCC_OUT_PIN
99 #define LTC3335_PGOOD PGOOD_IN_PIN
100 #define LTC3335_IRQ IRQ_IN_PIN
107 LTC3335_OUTPUT_VOLTAGE_1_8V,
108 LTC3335_OUTPUT_VOLTAGE_2_5V,
109 LTC3335_OUTPUT_VOLTAGE_2_8V,
110 LTC3335_OUTPUT_VOLTAGE_3_0V,
111 LTC3335_OUTPUT_VOLTAGE_3_3V,
112 LTC3335_OUTPUT_VOLTAGE_3_6V,
113 LTC3335_OUTPUT_VOLTAGE_4_5V,
114 LTC3335_OUTPUT_VOLTAGE_5_0V,
115 LTC3335_NUM_OUTPUT_VOLTAGES
116 } LTC3335_OUTPUT_VOLTAGE_TYPE;
127 LTC3335_IPEAK_CONFIGURATION_IPEAK_5MA,
128 LTC3335_IPEAK_CONFIGURATION_IPEAK_10MA,
129 LTC3335_IPEAK_CONFIGURATION_IPEAK_15MA,
130 LTC3335_IPEAK_CONFIGURATION_IPEAK_25MA,
131 LTC3335_IPEAK_CONFIGURATION_IPEAK_50MA,
132 LTC3335_IPEAK_CONFIGURATION_IPEAK_100MA,
133 LTC3335_IPEAK_CONFIGURATION_IPEAK_150MA,
134 LTC3335_IPEAK_CONFIGURATION_IPEAK_250MA,
135 LTC3335_NUM_IPEAK_CONFIGURATIONS
136 } LTC3335_IPEAK_CONFIGURATION_TYPE;
141 unsigned ac_on_time_overflow :1;
142 unsigned coulomb_counter_overflow :1;
143 unsigned alarm_trip :1;
163 LTC3335_OUTPUT_VOLTAGE_TYPE voltage
170 LTC3335_OUTPUT_VOLTAGE_TYPE* voltage
230 uint32_t* edge_count,
bool_t LTC3335_Set_Alarm_Threshold(uint8_t threshold)
Sets the specified alarm threshold for the LTC3335.
bool_t LTC3335_Set_Prescaler(uint8_t prescaler)
Sets the specified prescaler setting for the LTC3335.
void LTC3335_Counter_Test_Task(void)
Task that must be run periodically, for the edges and time to be stored for the LTC3335 Counter Test ...
bool_t LTC3335_Set_Accumulator(uint8_t accumulator)
Sets the specified accumulator value for the LTC3335.
bool_t LTC3335_Set_Counter_Test(bool_t enabled)
Enables/Disables the LTC3335 Counter Test feature.
bool_t LTC3335_Get_Accumulator(uint8_t *accumulator)
Gets the specified accumulator value from the LTC3335.
bool_t LTC3335_Reset_Counter_Test(void)
Resets the number of edges and the amount of time stored for the Counter Test feature.
bool_t LTC3335_Get_Prescaler(uint8_t *prescaler)
Gets the prescaler setting from the LTC3335.
bool_t LTC3335_Get_Alarms(LTC3335_ALARM_TYPE *alarms)
Gets the alarms active from the LTC3335.
bool_t LTC3335_Get_Voltage(bool_t *enabled, LTC3335_OUTPUT_VOLTAGE_TYPE *voltage)
Get whether the software control of the LTC3335 output voltage is enabled/disabled.
bool_t LTC3335_Get_Counter_Test_Results(bool_t *enabled, uint32_t *edge_count, uint32_t *time)
Gets whether the LTC3335 Counter Test feature is Enabled/Disabled.
bool_t LTC3335_Clear_Int(void)
Sends the command to clear the INT condition.
bool_t LTC3335_Set_Voltage(bool_t enabled, LTC3335_OUTPUT_VOLTAGE_TYPE voltage)
Enables/Disables software control of the LTC3335 output voltage.
bool_t LTC3335_Get_Alarm_Threshold(uint8_t *threshold)
Gets the alarm threshold from the LTC3335.
bool_t LTC3335_Get_Counter_Test(bool_t *enabled)
Gets whether the LTC3335 Counter Test feature is Enabled/Disabled.
void LTC3335_Init(void)
Initializes the LTC3335 driver.
The alarm conditions which cause the LTC3335 to activate the /INT pin.