Search:

Type: Posts; User: jaypatel

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,527

    PnP event handling

    What is PnP event handling for USB?How to implement in C ?Can you suggest me some good resources to study them?
  2. Thread: __u16 type

    by jaypatel
    Replies
    6
    Views
    10,126

    the %s prints the name of manufacturer in that...

    the %s prints the name of manufacturer in that code.I just printed using %04x and got the right o/p.%u doesn't work here,gives the wrong ID.Anyway,got it solved thanks.%04x gives hexadecimal o/p
  3. Thread: __u16 type

    by jaypatel
    Replies
    6
    Views
    10,126

    " idVendor 0x%04x %s\n" This is what...

    " idVendor 0x%04x %s\n"
    This is what I saw here:
    Koders Code Search: lsusb.c - C - GPL
    u16 means 16 bit unsigned char.As you mentioned it should return sizeof() as 2
  4. Thread: __u16 type

    by jaypatel
    Replies
    6
    Views
    10,126

    __u16 type

    I am writing a program in C using usb.h where ManufacturerID of USB is in __u16 format. How to print it using printf.If I use %d it gives Segmentation Fault as output and if I use %c it gives some...
  5. Replies
    4
    Views
    2,136

    Kernel Programming

    insert
    #include <linux/kernel.h>
    #include <linux/module.h>
    #include <linux/usb.h>

    MODULE_LICENSE("GPL");

    struct usb_device_descriptor desc;
    static int prog_init(void)
    {
Results 1 to 5 of 5