pirblaster  0.01
Use the pi as a remote control for your TV, DVD player etc.
Functions
InitCarrier.c File Reference
#include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include "../Kmod/Kmod.h"
Include dependency graph for InitCarrier.c:

Go to the source code of this file.

Functions

int InitCarrier (int Range, int Divisor, int DutyCycle)
 Wrapper to ioctl. More...
 

Function Documentation

int InitCarrier ( int  Range,
int  Divisor,
int  DutyCycle 
)

Wrapper to ioctl.

Small wrapper to set the hardware pwm registers, so the pwm will produce the desired frequency and dutycycle

Parameters
RangeSets the number of steps in which you can modify the dutycycle
DivisorSets the number by which the hardwareclock is divided to get the right frequency
DutyCycleSets the DutyCycle

Definition at line 33 of file InitCarrier.c.

Here is the caller graph for this function: