Defines | Variables

projects/nrfgo_sdk/bootloader_32k/firmware/usb_desc_bootloader.c File Reference

#include "config.h"
#include "usb_desc_bootloader.h"

Go to the source code of this file.

Defines

#define SWAP(x)   ((((x)&0xFF)<<8)|(((x)>>8)&0xFF))
#define USB_STRING_IDX_1_DESC   "Nordic Semiconductor"
#define USB_STRING_IDX_2_DESC   "nRF24LU1P-F32 BOOT LDR"

Variables

code usb_dev_desc_t g_usb_dev_desc
code usb_conf_desc_bootloader_t g_usb_conf_desc
code uint8_t g_usb_string_desc_1 []
code uint8_t g_usb_string_desc_2 []
code uint8_t string_zero [] = {0x04, 0x03, 0x09, 0x04}

Detailed Description

USB descriptor for Bootloader

Definition in file usb_desc_bootloader.c.


Define Documentation

#define SWAP (   x )    ((((x)&0xFF)<<8)|(((x)>>8)&0xFF))

Swaps the upper byte with the lower byte in a 16 bit variable

Definition at line 25 of file usb_desc_bootloader.c.

#define USB_STRING_IDX_1_DESC   "Nordic Semiconductor"

Definition at line 91 of file usb_desc_bootloader.c.

#define USB_STRING_IDX_2_DESC   "nRF24LU1P-F32 BOOT LDR"

Definition at line 118 of file usb_desc_bootloader.c.


Variable Documentation

Initial value:
 {
  sizeof(usb_dev_desc_t), 
  USB_DESC_DEVICE, 
  SWAP(0x0200),       
  0xff,               
  0xff,               
  0xff,               
   32 ,
  SWAP(6421),         
  SWAP(0x0101),       
  SWAP(0x0001),       
  0x01,               
  0x02,               
  0x00,               
  0x01                
}

Definition at line 30 of file usb_desc_bootloader.c.

Definition at line 47 of file usb_desc_bootloader.c.

code uint8_t g_usb_string_desc_1[]
Initial value:
 
{
    sizeof( "Nordic Semiconductor" ) * 2, 0x03,
    'N', 00,
    'o', 00,
    'r', 00,
    'd', 00,
    'i', 00,
    'c', 00,
    ' ', 00,
    'S', 00,
    'e', 00,
    'm', 00,
    'i', 00,
    'c', 00,
    'o', 00,
    'n', 00,
    'd', 00,
    'u', 00,
    'c', 00,
    't', 00,
    'o', 00,
    'r', 00 
}

Definition at line 93 of file usb_desc_bootloader.c.

code uint8_t g_usb_string_desc_2[]
Initial value:
 
{
    sizeof( "nRF24LU1P-F32 BOOT LDR" ) * 2, 0x03,
    'n', 00,
    'R', 00,
    'F', 00,
    '2', 00,
    '4', 00,
    'L', 00,
    'U', 00,
    '1', 00,
    'P', 00,
    '-', 00,
    'F', 00,
    '3', 00,
    '2', 00,
    ' ', 00,
    'B', 00,
    'O', 00,
    'O', 00,
    'T', 00,
    ' ', 00,
    'L', 00,
    'D', 00,
    'R', 00
}

Definition at line 120 of file usb_desc_bootloader.c.

code uint8_t string_zero[] = {0x04, 0x03, 0x09, 0x04}

Definition at line 148 of file usb_desc_bootloader.c.