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

Go to the source code of this file.

Functions

void configTimer1 (void)
 
void InitI2C (void)
 
void I2C_Start (void)
 
void I2C_Stop (void)
 
void I2CsendByte (unsigned char j)
 
unsigned char I2C_getByte (char do_ack)
 
void LCDinit (void)
 
void LCDinit2 (void)
 

Function Documentation

void configTimer1 ( void  )

Function: configTimer1

Preconditions: None.

Overview: Configures Timer1 module.

Arguments: None.

Returns: None.

Definition at line 39 of file init.c.

unsigned char I2C_getByte ( char  do_ack)

Function: I2C_getByte

Preconditions: I2C module initialized.

Overview: Retrieves data from the bus.

Arguments: Do acknowledge.

Returns: unsigned char data.

Definition at line 152 of file init.c.

void I2C_Start ( void  )

Function: I2C_Start

Preconditions: I2C module initialized.

Overview: Sends a start condition on the I2C bus.

Arguments: None.

Returns: None.

Definition at line 98 of file init.c.

void I2C_Stop ( void  )

Function: I2C_Stop

Preconditions: I2C module initialized.

Overview: Sends a stop condition on the I2C bus.

Arguments: None.

Returns: None.

Definition at line 115 of file init.c.

void I2CsendByte ( unsigned char  j)

Function: I2CsendByte

Preconditions: I2C module initialized.

Overview: Sends a byte over the I2C bus.

Arguments: None.

Returns: None.

Definition at line 132 of file init.c.

void InitI2C ( void  )

Function: InitI2C

Preconditions: I2C via hardware is selected.

Overview: Initializes internal I2C1 module.

Arguments: None.

Returns: None.

Definition at line 67 of file init.c.

void LCDinit ( void  )

Function: LCDInit

Preconditions: None.

Overview: Initializes the LCD controller (ST7036i) in normal mode.

Arguments: None.

Returns: None.

Definition at line 236 of file init.c.

void LCDinit2 ( void  )

Function: LCDInit2

Preconditions: None.

Overview: Initializes the LCD controller (ST7036i) in double line mode.

Arguments: None.

Returns: None.

Definition at line 271 of file init.c.