no-OS
Loading...
Searching...
No Matches
overcurrent_example.c File Reference

Overcurrent-protection demo for LTC4284 on DC2470A. More...

#include <stdio.h>
#include <stdlib.h>
#include "overcurrent_example.h"
#include "common_data.h"
#include "ltc4284.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
Include dependency graph for overcurrent_example.c:

Macros

#define OC_ILIM_MV   15 /* V_ILIM in mV, 15..30 */
 
#define OC_FOLDBACK   LTC4284_FB_50 /* Startup foldback */
 
#define OC_RETRY_POLICY   LTC4284_RETRY_1 /* 1 retry, then latch */
 
#define LOOP_PERIOD_MS   1000 /* Telemetry poll rate */
 

Functions

int overcurrent_example_main (void)
 

Detailed Description

Overcurrent-protection demo for LTC4284 on DC2470A.

Author
Carlos Jones Jr carlo.nosp@m.sjr..nosp@m.jones.nosp@m.@ana.nosp@m.log.c.nosp@m.om
Christopher de Guzman chris.nosp@m.toph.nosp@m.er.de.nosp@m.guzm.nosp@m.an@an.nosp@m.alog.nosp@m..com

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ LOOP_PERIOD_MS

#define LOOP_PERIOD_MS   1000 /* Telemetry poll rate */

◆ OC_FOLDBACK

#define OC_FOLDBACK   LTC4284_FB_50 /* Startup foldback */

◆ OC_ILIM_MV

#define OC_ILIM_MV   15 /* V_ILIM in mV, 15..30 */

◆ OC_RETRY_POLICY

#define OC_RETRY_POLICY   LTC4284_RETRY_1 /* 1 retry, then latch */

Function Documentation

◆ overcurrent_example_main()

int overcurrent_example_main ( void )