Aguijón Software Libraries  1.0
Documentation for the included Libraries
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
outputs.c File Reference
#include <p24FJ128GB106.h>
#include "GenericTypeDefs.h"
#include "outcompare.h"
#include "definitions.h"
#include "outputs.h"

Go to the source code of this file.

Macros

#define USE_AND_OR
 
#define ocmp_v2_3
 
#define PWM_CONV_FACTOR   8
 Normalizes period for the PWM count register.
 

Functions

void LEDport (unsigned char lednum, char state)
 
void RLYport (unsigned char rlynum, char state)
 
void OCport (unsigned char ocnum, char state)
 
void buzzer (unsigned int period_uS, unsigned int duty_div)
 
void backlight (unsigned int value)
 

Macro Definition Documentation

#define ocmp_v2_3

Definition at line 27 of file outputs.c.

#define PWM_CONV_FACTOR   8

Normalizes period for the PWM count register.

Definition at line 34 of file outputs.c.

#define USE_AND_OR

Definition at line 26 of file outputs.c.

Function Documentation

void backlight ( unsigned int  value)

Function: backlight

Preconditions: Remmaped Backlight pin.

Overview: Dims the LCD backlight intensity.

Arguments: Duty Cycle, see "definitions.h".

Returns: None.

Definition at line 198 of file outputs.c.

void buzzer ( unsigned int  period_uS,
unsigned int  duty_div 
)

Function: buzzer

Preconditions: Remapped PWM pins.

Overview: Activates a PWM on the corresponding OutputCompare pins.

Arguments: Signal period (uS), Desired Duty Cycle (0-100).

Returns: None.

Definition at line 167 of file outputs.c.

void LEDport ( unsigned char  lednum,
char  state 
)

Function: LEDport

Preconditions: None.

Overview: Turns ON/OFF the specified LED output.

Arguments: Physical LED number, Logic State (0-1).

Returns: None.

Definition at line 48 of file outputs.c.

void OCport ( unsigned char  ocnum,
char  state 
)

Function: OCport

Preconditions: None.

Overview: Turns ON/OFF the specified Open Collector output.

Arguments: Physical Open Collector number, Logic State (0-1).

Returns: None.

Definition at line 132 of file outputs.c.

void RLYport ( unsigned char  rlynum,
char  state 
)

Function: RLYport

Preconditions: None.

Overview: Turns ON/OFF the specified Relay output.

Arguments: Physical Relay number, Logic State (0-1).

Returns: None.

Definition at line 98 of file outputs.c.