no-OS
maxim_usb_uart.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef MAXIM_USB_UART_H_
34 #define MAXIM_USB_UART_H_
35 
36 #include "no_os_irq.h"
37 #include "no_os_uart.h"
38 
43  uint16_t vid;
44  uint16_t pid;
45 };
46 
53 };
54 
58 extern const struct no_os_uart_platform_ops max_usb_uart_ops;
59 
60 #endif
serial_id_desc
uint8_t serial_id_desc[]
Definition: maxim_usb_uart_descriptors.h:323
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:155
no_os_uart_init_param::extra
void * extra
Definition: no_os_uart.h:127
no_os_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
maxim_irq.h
Header file for maxim irq specifics.
cdcacm_func_desc
uint8_t cdcacm_func_desc[]
Definition: maxim_usb_uart_descriptors.h:329
usbShutdownCallback
int usbShutdownCallback()
Definition: maxim_usb_uart.c:350
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:92
delay_us
void delay_us(unsigned int usec)
Definition: maxim_usb_uart.c:86
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:308
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:157
no_os_uart_init_param::irq_id
uint32_t irq_id
Definition: no_os_uart.h:114
NO_OS_EVT_USB
@ NO_OS_EVT_USB
Definition: no_os_irq.h:73
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:54
prod_id_desc
uint8_t prod_id_desc[]
Definition: maxim_usb_uart_descriptors.h:315
EVENT_ENUM_COMP
#define EVENT_ENUM_COMP
Definition: maxim_usb_uart.c:52
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:134
no_os_uart_init_param::asynchronous_rx
bool asynchronous_rx
Definition: no_os_uart.h:116
maxim_irq.h
Header file for maxim irq specifics.
no_os_uart_desc::extra
void * extra
Definition: no_os_uart.h:147
maxim_usb_uart_descriptors.h
USB CDC ACM initialization structures.
NO_OS_USB_IRQ
@ NO_OS_USB_IRQ
Definition: no_os_irq.h:93
device_descriptor
MXC_USB_device_descriptor_t device_descriptor
Definition: maxim_usb_uart_descriptors.h:49
max_irq_ops
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:657
usbStartupCallback
int usbStartupCallback()
Definition: maxim_usb_uart.c:334
config_descriptor
MXC_USB_configuration_descriptor_t config_descriptor
Definition: maxim_usb_uart_descriptors.h:82
no_os_irq_init_param::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:111
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:45
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:144
config_descriptor_hs
struct @13 config_descriptor_hs
max_usb_uart_desc::nvic
struct no_os_irq_ctrl_desc * nvic
Definition: maxim_usb_uart.h:52
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:69
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:324
device_qualifier_descriptor
MXC_USB_device_qualifier_descriptor_t device_qualifier_descriptor
Definition: maxim_usb_uart_descriptors.h:68
NULL
#define NULL
Definition: wrapper.h:64
no_os_uart_init_param
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
maxim_irq.h
Header file for maxim irq specifics.
EVENT_ENUM_COMP
#define EVENT_ENUM_COMP
Definition: maxim_usb_uart.c:52
EVENT_ENUM_COMP
#define EVENT_ENUM_COMP
Definition: maxim_usb_uart.c:53
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
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:324
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:71
max_usb_uart_desc
Platform specific UART state.
Definition: maxim_usb_uart.h:50
lang_id_desc
uint8_t lang_id_desc[]
Definition: maxim_usb_uart_descriptors.h:302
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:181
max_usb_uart_init_param
Aditional UART config parameters.
Definition: maxim_usb_uart.h:42
max_usb_uart_init_param::vid
uint16_t vid
Definition: maxim_usb_uart.h:43
no_os_uart.h
Header file of UART interface.
max_usb_uart_init_param::pid
uint16_t pid
Definition: maxim_usb_uart.h:44
no_os_util.h
Header file of utility functions.
no_os_irq_ctrl_desc
Definition: no_os_irq.h:123
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.