this is testing

Committer:
pmallick
Date:
Thu Jan 14 18:54:16 2021 +0530
Revision:
0:3afcd581558d
this is testing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmallick 0:3afcd581558d 1 /***************************************************************************//**
pmallick 0:3afcd581558d 2 * @file iio_transport.h
pmallick 0:3afcd581558d 3 * @brief Header file of iio_transport.
pmallick 0:3afcd581558d 4 * @author
pmallick 0:3afcd581558d 5 ********************************************************************************
pmallick 0:3afcd581558d 6 * Copyright (c) 2020 Analog Devices, Inc.
pmallick 0:3afcd581558d 7 *
pmallick 0:3afcd581558d 8 * This software is proprietary to Analog Devices, Inc. and its licensors.
pmallick 0:3afcd581558d 9 * By using this software you agree to the terms of the associated
pmallick 0:3afcd581558d 10 * Analog Devices Software License Agreement.
pmallick 0:3afcd581558d 11 *******************************************************************************/
pmallick 0:3afcd581558d 12
pmallick 0:3afcd581558d 13 #ifndef IIO_TRANSPORT_H_
pmallick 0:3afcd581558d 14 #define IIO_TRANSPORT_H_
pmallick 0:3afcd581558d 15
pmallick 0:3afcd581558d 16 /******************************************************************************/
pmallick 0:3afcd581558d 17 /***************************** Include Files **********************************/
pmallick 0:3afcd581558d 18 /******************************************************************************/
pmallick 0:3afcd581558d 19
pmallick 0:3afcd581558d 20 #include "iio.h"
pmallick 0:3afcd581558d 21 #include "platform_drivers.h"
pmallick 0:3afcd581558d 22
pmallick 0:3afcd581558d 23 /******************************************************************************/
pmallick 0:3afcd581558d 24 /********************** Macros and Constants Definition ***********************/
pmallick 0:3afcd581558d 25 /******************************************************************************/
pmallick 0:3afcd581558d 26
pmallick 0:3afcd581558d 27 /* Baud rate for IIO UART interface */
pmallick 0:3afcd581558d 28 #define IIO_UART_BAUD_RATE (230400U)
pmallick 0:3afcd581558d 29
pmallick 0:3afcd581558d 30 /******************************************************************************/
pmallick 0:3afcd581558d 31 /*************************** Types Declarations *******************************/
pmallick 0:3afcd581558d 32 /******************************************************************************/
pmallick 0:3afcd581558d 33
pmallick 0:3afcd581558d 34 /******************************************************************************/
pmallick 0:3afcd581558d 35 /************************ Functions Declarations ******************************/
pmallick 0:3afcd581558d 36 /******************************************************************************/
pmallick 0:3afcd581558d 37
pmallick 0:3afcd581558d 38 /* UART peripheral init wrapper */
pmallick 0:3afcd581558d 39 int32_t iio_uart_init(struct uart_desc **desc, struct uart_init_param *param);
pmallick 0:3afcd581558d 40
pmallick 0:3afcd581558d 41 /* UART data write wrapper */
pmallick 0:3afcd581558d 42 ssize_t iio_uart_write(const char *buf, size_t len);
pmallick 0:3afcd581558d 43
pmallick 0:3afcd581558d 44 /* UART data read wrapper */
pmallick 0:3afcd581558d 45 ssize_t iio_uart_read(char *buf, size_t len);
pmallick 0:3afcd581558d 46
pmallick 0:3afcd581558d 47 /* IIO command detect monitor */
pmallick 0:3afcd581558d 48 bool is_new_iio_command_detected(void);
pmallick 0:3afcd581558d 49
pmallick 0:3afcd581558d 50 /* Check for specific IIO command */
pmallick 0:3afcd581558d 51 bool check_iio_cmd(const char *cmd_str, uint8_t len);
pmallick 0:3afcd581558d 52
pmallick 0:3afcd581558d 53 /* IIO UART receive interrupt callback function */
pmallick 0:3afcd581558d 54 void iio_uart_rx_callback(void);
pmallick 0:3afcd581558d 55
pmallick 0:3afcd581558d 56 #endif /* IIO_TRANSPORT_H_ */