Changeset 09ab0a9a in mainline for uspace/lib/usbhid/src


Ignore:
Timestamp:
2018-09-13T12:05:53Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc74cb5
Parents:
b2aaaa0
git-author:
Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
git-committer:
Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
Message:

Fix vertical spacing with new Ccheck revision.

Location:
uspace/lib/usbhid/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hiddescriptor.c

    rb2aaaa0 r09ab0a9a  
    4242#include <stdlib.h>
    4343
    44 
    4544/*
    4645 * Constants defining current parsing mode for correct parsing of the set of
     
    6261#define INSIDE_DELIMITER_SET    2
    6362
    64 
    65 
    6663/** The new report item flag. Used to determine when the item is completly
    6764 * configured and should be added to the report structure
     
    7976/** Unknown tag was founded in report descriptor data*/
    8077#define USB_HID_UNKNOWN_TAG             -99
    81 
    8278
    8379/**
     
    125121}
    126122
    127 
    128123/**
    129124 * Initialize the report descriptor parser structure
     
    147142        return EOK;
    148143}
    149 
    150 
    151144
    152145/**
     
    329322}
    330323
    331 
    332324/** Parse HID report descriptor.
    333325 *
     
    510502                }
    511503
    512 
    513504        }
    514505
    515506        return EOK;
    516507}
    517 
    518 
    519508
    520509/**
     
    759748                            usb_hid_report_tag_data_uint32(data, item_size));
    760749
    761 
    762750                        report_item->usage_minimum =
    763751                            USB_HID_EXTENDED_USAGE(
     
    867855        return result;
    868856}
    869 
    870857
    871858/**
     
    909896}
    910897
    911 
    912898/**
    913899 * Prints content of given report descriptor in human readable format.
     
    936922}
    937923
    938 
    939 
    940924/** Frees the HID report descriptor parser structure
    941925 *
     
    986970}
    987971
    988 
    989972/**
    990973 * @}
  • uspace/lib/usbhid/src/hidparser.c

    rb2aaaa0 r09ab0a9a  
    4444#include <macros.h>
    4545
    46 
    4746/*
    4847 * Data translation private functions
     
    5453uint32_t usb_hid_translate_data_reverse(usb_hid_report_field_t *item,
    5554    int32_t value);
    56 
    57 
    5855
    5956static int usb_pow(int a, int b)
     
    7269}
    7370
    74 
    7571/** Returns size of report of specified report id and type in items
    7672 *
     
    120116        }
    121117}
    122 
    123118
    124119/** Parse and act upon a HID report.
     
    192187}
    193188
    194 
    195189/**
    196190 * Translate data from the report as specified in report descriptor item
     
    258252            item->physical_minimum);
    259253}
    260 
    261254
    262255/* OUTPUT API */
     
    299292        }
    300293}
    301 
    302294
    303295/** Frees output report buffer
     
    410402}
    411403
    412 
    413404/**
    414405 * Translate given data for putting them into the outoput report
     
    455446}
    456447
    457 
    458448/**
    459449 * Clones given state table
     
    475465        return new_report_item;
    476466}
    477 
    478467
    479468/**
     
    531520}
    532521
    533 
    534522/**
    535523 * Returns next report_id of report of specified type. If zero is given than
     
    578566        return 0;
    579567}
    580 
    581568
    582569/**
  • uspace/lib/usbhid/src/hidpath.c

    rb2aaaa0 r09ab0a9a  
    4141#include <assert.h>
    4242
    43 
    4443/**
    4544 * Compares two usages if they are same or not or one of the usages is not
     
    6261#define USB_HID_SAME_USAGE_PAGE(page1, page2)   \
    6362        ((page1 == page2) || (page1 == 0) || (page2 == 0))
    64 
    6563
    6664/**
     
    9290        return EOK;
    9391}
    94 
    9592
    9693/**
     
    114111}
    115112
    116 
    117113/**
    118114 * Nulls last item of the usage path structure.
     
    132128        }
    133129}
    134 
    135130
    136131/**
     
    350345}
    351346
    352 
    353347/**
    354348 * Releases given usage path structure.
     
    369363}
    370364
    371 
    372365/**
    373366 * Clone content of given usage path to the new one
     
    413406}
    414407
    415 
    416408/**
    417409 * Sets report id in usage path structure
  • uspace/lib/usbhid/src/hidreport.c

    rb2aaaa0 r09ab0a9a  
    161161}
    162162
    163 
    164 
    165163errno_t usb_hid_process_report_descriptor(usb_device_t *dev,
    166164    usb_hid_report_t *report, uint8_t **report_desc, size_t *report_size)
  • uspace/lib/usbhid/src/hidreq.c

    rb2aaaa0 r09ab0a9a  
    4545#include <usb/hid/request.h>
    4646
    47 
    4847/**
    4948 * Send Set Report request to the HID device.
     
    9796}
    9897
    99 
    10098/**
    10199 * Send Set Protocol request to the HID device.
     
    144142        return EOK;
    145143}
    146 
    147144
    148145/**
     
    194191        return EOK;
    195192}
    196 
    197193
    198194/**
     
    251247}
    252248
    253 
    254249/**
    255250 * Send Get Protocol request to the HID device.
     
    310305}
    311306
    312 
    313307/**
    314308 * Send Get Idle request to the HID device.
     
    374368}
    375369
    376 
    377 
    378370/**
    379371 * @}
Note: See TracChangeset for help on using the changeset viewer.