![]() |
Contiki-NG
|
Files | |
| file | usb-arch.c |
| USB implementation for the nRF. | |
| file | usb.c |
| USB driver for the nRF. | |
| file | usb.h |
| USB header file for the nRF. | |
| file | usb_descriptors.h |
| USB descriptors header file for the nRF. | |
Functions | |
| void | usb_interrupt_handler (void) |
| Handles the interrupt. | |
| void | usb_set_input (int(*input)(unsigned char c)) |
| Sets the input handler called in the event handler. | |
| void | usb_init (void) |
| Initialize the USB driver. | |
| void | usb_write (uint8_t *buffer, uint32_t buffer_size) |
| Writes to the USB driver. | |
| void | usb_flush (void) |
| Flush USB buffer. | |
| void | usb_arch_init (void) |
| Initialize the architecture specific USB driver. | |
| void | usb_descriptor_set_manufacturer (char *manufacturer) |
| Set the manufactorer. | |
| void | usb_descriptor_set_product (char *product) |
| Set the product. | |
| void | usb_descriptor_set_serial (char *serial) |
| Set the serial. | |
| void | usb_descriptor_set_cdc_interface (char *cdc_interface) |
| Set the cdc interface. | |
| void usb_descriptor_set_cdc_interface | ( | char * | cdc_interface | ) |
Set the cdc interface.
| cdc_interface | pointer to cdc interface string |
Definition at line 181 of file usb_descriptors.c.
Referenced by usb_init().
| void usb_descriptor_set_manufacturer | ( | char * | manufacturer | ) |
Set the manufactorer.
| manufacturer | pointer to manufactorer string |
Definition at line 166 of file usb_descriptors.c.
Referenced by usb_init().
| void usb_descriptor_set_product | ( | char * | product | ) |
Set the product.
| product | pointer to product string |
Definition at line 171 of file usb_descriptors.c.
Referenced by usb_init().
| void usb_descriptor_set_serial | ( | char * | serial | ) |
Set the serial.
| serial | pointer to serial string |
Definition at line 176 of file usb_descriptors.c.
| void usb_flush | ( | void | ) |
| void usb_interrupt_handler | ( | void | ) |
Handles the interrupt.
Definition at line 64 of file usb.c.
References process_poll().
| void usb_set_input | ( | int(*)(unsigned char c) | input | ) |
Sets the input handler called in the event handler.
| input | character that has been read |
Definition at line 75 of file usb.c.
References input().
Referenced by platform_init_stage_two().
| void usb_write | ( | uint8_t * | buffer, |
| uint32_t | buffer_size ) |
Writes to the USB driver.
| buffer | data to be transferred |
| buffer_size | size of data |
Definition at line 94 of file usb.c.
References usb_flush().