no-OS
Variables
common_data.c File Reference

Common data used by the MAX25603 project. More...

#include "common_data.h"
Include dependency graph for common_data.c:

Variables

struct no_os_uart_init_param max25603_uart_ip
 
struct no_os_gpio_init_param max25603_shunt_ip
 
struct no_os_pwm_init_param max25603_en1_ip
 
struct no_os_pwm_init_param max25603_en2_ip
 
struct no_os_pwm_init_param max25603_hb_ip
 
struct no_os_pwm_init_param max25603_lb_ip
 
struct max25603_init_param max25603_ip
 

Detailed Description

Common data used by the MAX25603 project.

Author
Radu Sabau (radu..nosp@m.saba.nosp@m.u@ana.nosp@m.log..nosp@m.com)

Copyright 2024(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Variable Documentation

◆ max25603_en1_ip

struct no_os_pwm_init_param max25603_en1_ip
Initial value:
= {
.id = PWM_EN1_ID,
.period_ns = PWM_EN1_PERIOD_NS,
.duty_cycle_ns = PWM_EN1_DUTY_NS,
.platform_ops = PWM_OPS,
.extra = PWM_EXTRA,
}

◆ max25603_en2_ip

struct no_os_pwm_init_param max25603_en2_ip
Initial value:
= {
.id = PWM_EN2_ID,
.period_ns = PWM_EN2_PERIOD_NS,
.duty_cycle_ns = PWM_EN2_DUTY_NS,
.platform_ops = PWM_OPS,
.extra = PWM_EXTRA,
}

◆ max25603_hb_ip

struct no_os_pwm_init_param max25603_hb_ip
Initial value:
= {
.id = PWM_HB_ID,
.period_ns = PWM_HB_PERIOD_NS,
.duty_cycle_ns = PWM_HB_DUTY_NS,
.platform_ops = PWM_OPS,
.extra = PWM_EXTRA,
}

◆ max25603_ip

struct max25603_init_param max25603_ip
Initial value:
= {
.en1_param = &max25603_en1_ip,
.en2_param = &max25603_en2_ip,
.flt_param = NULL,
.hb_param = &max25603_hb_ip,
.lb_param = &max25603_lb_ip,
.shunt_param = &max25603_shunt_ip,
}

◆ max25603_lb_ip

struct no_os_pwm_init_param max25603_lb_ip
Initial value:
= {
.id = PWM_LB_ID,
.period_ns = PWM_LB_PERIOD_NS,
.duty_cycle_ns = PWM_LB_DUTY_NS,
.platform_ops = PWM_OPS,
.extra = PWM_EXTRA,
}

◆ max25603_shunt_ip

struct no_os_gpio_init_param max25603_shunt_ip
Initial value:
= {
.port = GPIO_SHUNT_PORT_NUM,
.pull = NO_OS_PULL_NONE,
.number = GPIO_SHUNT_PIN_NUM,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}

◆ max25603_uart_ip

struct no_os_uart_init_param max25603_uart_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.baud_rate = UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.platform_ops = UART_OPS,
.parity = NO_OS_UART_PAR_NO,
.extra = UART_EXTRA,
}
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
UART_EXTRA
#define UART_EXTRA
Definition: parameters.h:54
PWM_OPS
#define PWM_OPS
Definition: parameters.h:112
max25603_shunt_ip
struct no_os_gpio_init_param max25603_shunt_ip
Definition: common_data.c:46
NO_OS_PULL_NONE
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:66
max25603_en1_ip
struct no_os_pwm_init_param max25603_en1_ip
Definition: common_data.c:54
max25603_lb_ip
struct no_os_pwm_init_param max25603_lb_ip
Definition: common_data.c:81
UART_OPS
#define UART_OPS
Definition: parameters.h:55
max25603_hb_ip
struct no_os_pwm_init_param max25603_hb_ip
Definition: common_data.c:72
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:53
NO_OS_PWM_POLARITY_HIGH
@ NO_OS_PWM_POLARITY_HIGH
Definition: no_os_pwm.h:57
PWM_EXTRA
#define PWM_EXTRA
Definition: parameters.h:113
max25603_en2_ip
struct no_os_pwm_init_param max25603_en2_ip
Definition: common_data.c:63
NULL
#define NULL
Definition: wrapper.h:64
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
GPIO_OPS
#define GPIO_OPS
Definition: parameters.h:78
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:52
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
GPIO_EXTRA
#define GPIO_EXTRA
Definition: parameters.h:79