linux/drivers/media/rc/imon_raw.c

// SPDX-License-Identifier: GPL-2.0+
//
// Copyright (C) 2018 Sean Young <[email protected]>

#include <linux/module.h>
#include <linux/usb.h>
#include <linux/usb/input.h>
#include <media/rc-core.h>

/* Each bit is 250us */
#define BIT_DURATION

struct imon {};

/*
 * The first 5 bytes of data represent IR pulse or space. Each bit, starting
 * from highest bit in the first byte, represents 250µs of data. It is 1
 * for space and 0 for pulse.
 *
 * The station sends 10 packets, and the 7th byte will be number 1 to 10, so
 * when we receive 10 we assume all the data has arrived.
 */
static void imon_ir_data(struct imon *imon)
{}

static void imon_ir_rx(struct urb *urb)
{}

static int imon_probe(struct usb_interface *intf,
		      const struct usb_device_id *id)
{}

static void imon_disconnect(struct usb_interface *intf)
{}

static const struct usb_device_id imon_table[] =;

static struct usb_driver imon_driver =;

module_usb_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_DEVICE_TABLE(usb, imon_table);