linux/drivers/media/rc/ir-rcmm-decoder.c

// SPDX-License-Identifier: GPL-2.0+
// ir-rcmm-decoder.c - A decoder for the RCMM IR protocol
//
// Copyright (C) 2018 by Patrick Lerda <[email protected]>

#include "rc-core-priv.h"
#include <linux/module.h>

#define RCMM_UNIT
#define RCMM_PREFIX_PULSE
#define RCMM_PULSE_0
#define RCMM_PULSE_1
#define RCMM_PULSE_2
#define RCMM_PULSE_3

enum rcmm_state {};

static bool rcmm_mode(const struct rcmm_dec *data)
{}

static int rcmm_miscmode(struct rc_dev *dev, struct rcmm_dec *data)
{}

/**
 * ir_rcmm_decode() - Decode one RCMM pulse or space
 * @dev:	the struct rc_dev descriptor of the device
 * @ev:		the struct ir_raw_event descriptor of the pulse/space
 *
 * This function returns -EINVAL if the pulse violates the state machine
 */
static int ir_rcmm_decode(struct rc_dev *dev, struct ir_raw_event ev)
{}

static const int rcmmspace[] =;

static int ir_rcmm_rawencoder(struct ir_raw_event **ev, unsigned int max,
			      unsigned int n, u32 data)
{}

static int ir_rcmm_encode(enum rc_proto protocol, u32 scancode,
			  struct ir_raw_event *events, unsigned int max)
{}

static struct ir_raw_handler rcmm_handler =;

static int __init ir_rcmm_decode_init(void)
{}

static void __exit ir_rcmm_decode_exit(void)
{}

module_init();
module_exit(ir_rcmm_decode_exit);

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();