no-OS
maxim_usb_uart.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef MAXIM_USB_UART_H_
40 #define MAXIM_USB_UART_H_
41 
42 #include "no_os_irq.h"
43 #include "no_os_uart.h"
44 
49  uint16_t vid;
50  uint16_t pid;
51 };
52 
59 };
60 
64 extern const struct no_os_uart_platform_ops max_usb_uart_ops;
65 
66 #endif
serial_id_desc
uint8_t serial_id_desc[]
Definition: maxim_usb_uart_descriptors.h:329
no_os_alloc.h
no_os_uart_platform_ops
Structure holding UART function pointers that point to the platform specific function.
Definition: no_os_uart.h:161
no_os_uart_init_param::extra
void * extra
Definition: no_os_uart.h:133
no_os_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:148
maxim_irq.h
Header file for maxim irq specifics.
cdcacm_func_desc
uint8_t cdcacm_func_desc[]
Definition: maxim_usb_uart_descriptors.h:335
usbShutdownCallback
int usbShutdownCallback()
Definition: maxim_usb_uart.c:356
no_os_irq.h
Header file of IRQ interface.
no_os_irq_register_callback
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:98
delay_us
void delay_us(unsigned int usec)
Definition: maxim_usb_uart.c:92
maxim_usb_uart.h
Header file of USB CDC ACM driver for maxim platform.
no_os_delay.h
Header file of Delay functions.
mfg_id_desc
uint8_t mfg_id_desc[]
Definition: maxim_usb_uart_descriptors.h:314
no_os_uart_platform_ops::init
int32_t(* init)(struct no_os_uart_desc **, struct no_os_uart_init_param *)
Definition: no_os_uart.h:163
no_os_uart_init_param::irq_id
uint32_t irq_id
Definition: no_os_uart.h:120
NO_OS_EVT_USB
@ NO_OS_EVT_USB
Definition: no_os_irq.h:79
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:60
prod_id_desc
uint8_t prod_id_desc[]
Definition: maxim_usb_uart_descriptors.h:321
EVENT_ENUM_COMP
#define EVENT_ENUM_COMP
Definition: maxim_usb_uart.c:58
maxim_usb_uart.h
Header file of USB CDC ACM driver for maxim platform.
no_os_uart_desc
Stucture holding the UART descriptor.
Definition: no_os_uart.h:140
no_os_uart_init_param::asynchronous_rx
bool asynchronous_rx
Definition: no_os_uart.h:122
maxim_irq.h
Header file for maxim irq specifics.
no_os_uart_desc::extra
void * extra
Definition: no_os_uart.h:153
maxim_usb_uart_descriptors.h
USB CDC ACM initialization structures.
NO_OS_USB_IRQ
@ NO_OS_USB_IRQ
Definition: no_os_irq.h:99
device_descriptor
MXC_USB_device_descriptor_t device_descriptor
Definition: maxim_usb_uart_descriptors.h:55
max_irq_ops
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:662
usbStartupCallback
int usbStartupCallback()
Definition: maxim_usb_uart.c:340
no_os_irq_init_param::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:117
no_os_irq_ctrl_init
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:51
config_descriptor_hs
struct @10 config_descriptor_hs
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:150
max_usb_uart_desc::nvic
struct no_os_irq_ctrl_desc * nvic
Definition: maxim_usb_uart.h:58
maxim_usb_uart_descriptors.h
USB CDC ACM initialization structures.
no_os_lf256fifo.h
SPSC lock-free fifo of fixed size (256), specialized for UART.
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:75
max_usb_uart_ops
const struct no_os_uart_platform_ops max_usb_uart_ops
Maxim specific UART platform ops structure.
Definition: maxim_usb_uart.c:330
device_qualifier_descriptor
MXC_USB_device_qualifier_descriptor_t device_qualifier_descriptor
Definition: maxim_usb_uart_descriptors.h:74
NULL
#define NULL
Definition: wrapper.h:64
no_os_uart_init_param
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:116
maxim_irq.h
Header file for maxim irq specifics.
EVENT_ENUM_COMP
#define EVENT_ENUM_COMP
Definition: maxim_usb_uart.c:58
EVENT_ENUM_COMP
#define EVENT_ENUM_COMP
Definition: maxim_usb_uart.c:59
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:113
max_usb_uart_ops
const struct no_os_uart_platform_ops max_usb_uart_ops
Maxim platform specific UART platform ops structure.
Definition: maxim_usb_uart.c:330
no_os_irq_ctrl_remove
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:77
max_usb_uart_desc
Platform specific UART state.
Definition: maxim_usb_uart.h:56
lang_id_desc
uint8_t lang_id_desc[]
Definition: maxim_usb_uart_descriptors.h:308
no_os_irq_enable
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:187
max_usb_uart_init_param
Aditional UART config parameters.
Definition: maxim_usb_uart.h:48
max_usb_uart_init_param::vid
uint16_t vid
Definition: maxim_usb_uart.h:49
no_os_uart.h
Header file of UART interface.
config_descriptor
MXC_USB_configuration_descriptor_t config_descriptor
Definition: maxim_usb_uart_descriptors.h:88
max_usb_uart_init_param::pid
uint16_t pid
Definition: maxim_usb_uart.h:50
no_os_util.h
Header file of utility functions.
no_os_irq_ctrl_desc
Definition: no_os_irq.h:129
maxim_usb_uart_descriptors.h
USB CDC ACM initialization structures.
errno.h
Error macro definition for ARM Compiler.
maxim_usb_uart.h
Header file of USB CDC ACM driver for maxim platform.