Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
jornada720.h File Reference

Go to the source code of this file.

Macros

#define GETBATTERYDATA   0xc0
 
#define GETSCANKEYCODE   0x90
 
#define GETTOUCHSAMPLES   0xa0
 
#define GETCONTRAST   0xD0
 
#define SETCONTRAST   0xD1
 
#define GETBRIGHTNESS   0xD2
 
#define SETBRIGHTNESS   0xD3
 
#define CONTRASTOFF   0xD8
 
#define BRIGHTNESSOFF   0xD9
 
#define PWMOFF   0xDF
 
#define TXDUMMY   0x11
 
#define ERRORCODE   0x00
 

Functions

void jornada_ssp_start (void)
 
void jornada_ssp_end (void)
 
int jornada_ssp_inout (u8 byte)
 
int jornada_ssp_byte (u8 byte)
 

Macro Definition Documentation

#define BRIGHTNESSOFF   0xD9

Definition at line 24 of file jornada720.h.

#define CONTRASTOFF   0xD8

Definition at line 23 of file jornada720.h.

#define ERRORCODE   0x00

Definition at line 27 of file jornada720.h.

#define GETBATTERYDATA   0xc0

Definition at line 16 of file jornada720.h.

#define GETBRIGHTNESS   0xD2

Definition at line 21 of file jornada720.h.

#define GETCONTRAST   0xD0

Definition at line 19 of file jornada720.h.

#define GETSCANKEYCODE   0x90

Definition at line 17 of file jornada720.h.

#define GETTOUCHSAMPLES   0xa0

Definition at line 18 of file jornada720.h.

#define PWMOFF   0xDF

Definition at line 25 of file jornada720.h.

#define SETBRIGHTNESS   0xD3

Definition at line 22 of file jornada720.h.

#define SETCONTRAST   0xD1

Definition at line 20 of file jornada720.h.

#define TXDUMMY   0x11

Definition at line 26 of file jornada720.h.

Function Documentation

int jornada_ssp_byte ( u8  byte)

jornada_ssp_byte - waits for ready ssp bus and sends byte

waits for fifo buffer to clear and then transmits, if it doesn't then we will timeout after <timeout> rounds. Needs mcu running before its called.

returns : mcu output on success : %-ETIMEDOUT on timeout

Definition at line 59 of file jornada720_ssp.c.

void jornada_ssp_end ( void  )

jornada_ssp_end - disable mcu and turn off lock

Definition at line 125 of file jornada720_ssp.c.

int jornada_ssp_inout ( u8  byte)

jornada_ssp_inout - decide if input is command or trading byte

returns : (jornada_ssp_byte(byte)) on success : %-ETIMEDOUT on timeout failure

Definition at line 87 of file jornada720_ssp.c.

void jornada_ssp_start ( void  )

jornada_ssp_start - enable mcu

Definition at line 112 of file jornada720_ssp.c.