Bridle API 4.1.99
A Zephyr based application framework
Loading...
Searching...
No Matches
uart_sc16is75x.c File Reference

Driver for the UART part of an SC16IS75x bridge. More...

#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/mfd/sc16is75x.h>
#include <zephyr/logging/log.h>

Data Structures

struct  uart_sc16is75x_config
 
struct  uart_sc16is75x_data
 

Macros

#define DT_DRV_COMPAT   nxp_sc16is75x_uart
 
#define UART_SC16IS75X_DEFINE(inst)
 

Functions

 LOG_MODULE_REGISTER (uart_sc16is75x, CONFIG_UART_LOG_LEVEL)
 
static bool uart_sc16is75x_rx_available (const struct device *dev)
 
static bool uart_sc16is75x_tx_possible (const struct device *dev)
 
static int uart_sc16is75x_enable_fifo (const struct device *dev, bool enable)
 
static int uart_sc16is75x_reset_fifos (const struct device *dev)
 
static int uart_sc16is75x_poll_in (const struct device *dev, unsigned char *p_char)
 
static void uart_sc16is75x_poll_out (const struct device *dev, unsigned char out_char)
 
static int uart_sc16is75x_err_check (const struct device *dev)
 
static int uart_sc16is75x_set_baudrate (const struct device *dev, uint32_t baudrate)
 
static int uart_sc16is75x_set_hw_flow_ctrl (const struct device *dev, bool enable)
 
static int uart_sc16is75x_use_modem_pins (const struct device *dev, bool enable)
 
static int uart_sc16is75x_set_rs485_flow_ctrl (const struct device *dev, bool enable)
 
static int uart_sc16is75x_configure (const struct device *dev, const struct uart_config *cfg)
 
static int uart_sc16is75x_callback_set (const struct device *dev, uart_callback_t callback, void *user_data)
 
static int uart_sc16is75x_drv_cmd (const struct device *dev, uint32_t cmd, uint32_t p)
 
static int uart_sc16is75x_pm_device_pm_action (const struct device *const dev, enum pm_device_action action)
 
static int uart_sc16is75x_init (const struct device *dev)
 
 DT_INST_FOREACH_STATUS_OKAY (UART_SC16IS75X_DEFINE)
 

Variables

static const struct uart_driver_api uart_sc16is75x_api
 

Detailed Description

Driver for the UART part of an SC16IS75x bridge.

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   nxp_sc16is75x_uart

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( uart_sc16is75x  ,
CONFIG_UART_LOG_LEVEL   
)