Main Page | Class List | File List | Class Members | File Members | Related Pages

src/drivers/llc_pwm.c File Reference

Software LLC for PWM bus. More...

#include <assert.h>
#include <stdlib.h>
#include <otto/packet.h>
#include "llc.h"

Functions

const char _ID_[] __attribute__ ((unused))="$Id: llc_pwm.c,v 1.6 2004/07/07 16:14:01 alpha Exp $"
enum otto_llc_symbol pwm_decode_symbol (const struct otto_llc_pulse bit)
int pwm_encode_symbol (struct otto_llc_pulse *bit, const enum otto_llc_symbol sym, const struct otto_llc_pulse bit_prev, const enum otto_llc_symbol sym_prev)

Variables

const struct otto_llc_timing pwm_timing []
 Bit timing for PWM bus.

otto_llc_format pwm_format


Detailed Description

Software LLC for PWM bus.


Function Documentation

const char _ID_ [] __attribute__ (unused)   )  [static]
 

enum otto_llc_symbol pwm_decode_symbol const struct otto_llc_pulse  bit  )  [static]
 

Todo:

int pwm_encode_symbol struct otto_llc_pulse bit,
const enum otto_llc_symbol  sym,
const struct otto_llc_pulse  bit_prev,
const enum otto_llc_symbol  sym_prev
[static]
 

Todo:
Returns:
number of pulses remaining for this symbol


Variable Documentation

struct otto_llc_format pwm_format [static]
 

Initial value:

{ .name = "pwm", .desc = "Pulse width modulation", .decode_symbol = pwm_decode_symbol, .encode_symbol = pwm_encode_symbol, }

const struct otto_llc_timing pwm_timing[] [static]
 

Initial value:

{ { 6, 8, 11 }, { 14, 16, 19 }, { 22, 24, 27 }, { 46, 48, 63 }, { 70, 72, -1 }, { -1, 96, -1 }, { 30, 32, 35 }, { 38, 40, 43 }, { -1, 120, -1 }, { 45, 48, 52 }, { 4, -1, -1 }, }
Bit timing for PWM bus.


Generated on Thu Jul 8 19:26:06 2004 for OpenOtto by doxygen 1.3.7