hhopen.c File Reference

Go to the source code of this file.

Defines

#define HHOPENVERSION   "1.0.0"
#define BUFFERSIZE   128
#define DEV_DXM   DEV_UART0
#define DEV_DXM_NAME   DEV_UART0_NAME
#define DEV_DXM_SPEED_LOW   9600
#define DEV_DXM_SPEED   250000
#define DEV_USB   DEV_UART1
#define DEV_USB_NAME   DEV_UART1_NAME
#define DEV_USB_SPEED   125000
#define HHBACKL_PORT   PORTB
#define HHBACKL_DDR   DDRB
#define HHBACKL_RED   (1<<PB6)
#define HHBACKL_GREEN   (1<<PB5)
#define HHBACKL_BLUE   (1<<PB7)
#define HHDXM_PORT   PORTE
#define HHDXM_DDR   DDRE
#define HHDXM_RESET   (1<<PE7)
#define hhdxm_reset_h()   HHDXM_PORT |= HHDXM_RESET
#define hhdxm_reset_l()   HHDXM_PORT &= ~HHDXM_RESET
#define HHDXM_CTS   (1<<PE3)
#define HHDXM_RTS   (1<<PE2)
#define hhdxm_cts_ena()   HHDXM_PORT &= ~HHDXM_CTS
#define hhdxm_cts_dis()   HHDXM_PORT |= HHDXM_CTS
#define HHDXM_BOOT0   (1<<PE6)
#define hhdxm_boot0_h()   HHDXM_PORT |= HHDXM_BOOT0
#define hhdxm_boot0_l()   HHDXM_PORT &= ~HHDXM_BOOT0

Functions

void StreamCopy (FILE *ostream, FILE *istream, char *cop)
void dxm2usb (void *arg)
void usb2dxm (void *arg)
void ALife (void *arg)
void DXM_Reset (void)
void DXM_Init (void)
int DMX_Reconfigure (FILE *dev, FILE *debug)
void Backlight_Init (void)
void Backlight_Color (int r, int g, int b)
int main (void)

Variables

const char str_start[] PROGMEM = "starting %S"

Define Documentation

#define HHOPENVERSION   "1.0.0"
Examples:
hhopen/hhopen.c.

Definition at line 61 of file hhopen.c.

Referenced by main().

#define BUFFERSIZE   128
Examples:
hhopen/hhopen.c, and rs232d/rs232d.c.

Definition at line 63 of file hhopen.c.

Referenced by DMX_Reconfigure(), main(), and StreamCopy().

#define DEV_DXM   DEV_UART0
Examples:
hhopen/hhopen.c.

Definition at line 65 of file hhopen.c.

Referenced by main().

#define DEV_DXM_NAME   DEV_UART0_NAME
Examples:
hhopen/hhopen.c.

Definition at line 66 of file hhopen.c.

Referenced by main().

#define DEV_DXM_SPEED_LOW   9600
Examples:
hhopen/hhopen.c.

Definition at line 67 of file hhopen.c.

Referenced by main().

#define DEV_DXM_SPEED   250000
Examples:
hhopen/hhopen.c.

Definition at line 68 of file hhopen.c.

Referenced by main().

#define DEV_USB   DEV_UART1
Examples:
hhopen/hhopen.c.

Definition at line 70 of file hhopen.c.

Referenced by main().

#define DEV_USB_NAME   DEV_UART1_NAME
Examples:
hhopen/hhopen.c.

Definition at line 71 of file hhopen.c.

Referenced by main().

#define DEV_USB_SPEED   125000
Examples:
hhopen/hhopen.c.

Definition at line 72 of file hhopen.c.

Referenced by main().

#define HHBACKL_PORT   PORTB
Examples:
hhopen/hhopen.c.

Definition at line 189 of file hhopen.c.

Referenced by Backlight_Init().

#define HHBACKL_DDR   DDRB

Definition at line 190 of file hhopen.c.

#define HHBACKL_RED   (1<<PB6)

Definition at line 191 of file hhopen.c.

#define HHBACKL_GREEN   (1<<PB5)
Examples:
hhopen/hhopen.c.

Definition at line 192 of file hhopen.c.

Referenced by Backlight_Init().

#define HHBACKL_BLUE   (1<<PB7)
Examples:
hhopen/hhopen.c.

Definition at line 193 of file hhopen.c.

Referenced by Backlight_Init().

#define HHDXM_PORT   PORTE

Definition at line 195 of file hhopen.c.

#define HHDXM_DDR   DDRE
Examples:
hhopen/hhopen.c.

Definition at line 196 of file hhopen.c.

Referenced by DXM_Init().

#define HHDXM_RESET   (1<<PE7)
Examples:
hhopen/hhopen.c.

Definition at line 197 of file hhopen.c.

Referenced by DXM_Init().

 
#define hhdxm_reset_h (  )     HHDXM_PORT |= HHDXM_RESET
Examples:
hhopen/hhopen.c.

Definition at line 198 of file hhopen.c.

Referenced by DXM_Reset().

 
#define hhdxm_reset_l (  )     HHDXM_PORT &= ~HHDXM_RESET
Examples:
hhopen/hhopen.c.

Definition at line 199 of file hhopen.c.

Referenced by DXM_Init(), and DXM_Reset().

#define HHDXM_CTS   (1<<PE3)
Examples:
hhopen/hhopen.c.

Definition at line 200 of file hhopen.c.

Referenced by DXM_Init().

#define HHDXM_RTS   (1<<PE2)
Examples:
hhopen/hhopen.c.

Definition at line 201 of file hhopen.c.

Referenced by DXM_Init().

 
#define hhdxm_cts_ena (  )     HHDXM_PORT &= ~HHDXM_CTS
Examples:
hhopen/hhopen.c.

Definition at line 202 of file hhopen.c.

Referenced by main().

 
#define hhdxm_cts_dis (  )     HHDXM_PORT |= HHDXM_CTS

Definition at line 203 of file hhopen.c.

#define HHDXM_BOOT0   (1<<PE6)
Examples:
hhopen/hhopen.c.

Definition at line 204 of file hhopen.c.

Referenced by DXM_Init().

 
#define hhdxm_boot0_h (  )     HHDXM_PORT |= HHDXM_BOOT0
Examples:
hhopen/hhopen.c.

Definition at line 205 of file hhopen.c.

Referenced by DXM_Init().

 
#define hhdxm_boot0_l (  )     HHDXM_PORT &= ~HHDXM_BOOT0
Examples:
hhopen/hhopen.c.

Definition at line 206 of file hhopen.c.

Referenced by DXM_Reset().


Function Documentation

void StreamCopy ( FILE ostream,
FILE istream,
char *  cop 
)
Examples:
hhopen/hhopen.c, and rs232d/rs232d.c.

Definition at line 87 of file hhopen.c.

References BUFFERSIZE, fflush(), fread(), free, fwrite(), and malloc.

Referenced by dxm2usb(), main(), Receiver(), and usb2dxm().

void dxm2usb ( void *  arg  ) 
Examples:
hhopen/hhopen.c.

Definition at line 108 of file hhopen.c.

References NutThreadSetPriority(), NutThreadYield(), and StreamCopy().

Referenced by main().

void usb2dxm ( void *  arg  ) 
Examples:
hhopen/hhopen.c.

Definition at line 139 of file hhopen.c.

References NutThreadSetPriority(), NutThreadYield(), and StreamCopy().

Referenced by main().

void ALife ( void *  arg  ) 
Examples:
hhopen/hhopen.c.

Definition at line 176 of file hhopen.c.

References NutSleep(), and NutThreadSetPriority().

Referenced by main().

void DXM_Reset ( void   ) 
Examples:
hhopen/hhopen.c.

Definition at line 208 of file hhopen.c.

References hhdxm_boot0_l, hhdxm_reset_h, hhdxm_reset_l, and NutSleep().

Referenced by main().

void DXM_Init ( void   ) 
Examples:
hhopen/hhopen.c.

Definition at line 216 of file hhopen.c.

References HHDXM_BOOT0, hhdxm_boot0_h, HHDXM_CTS, HHDXM_DDR, HHDXM_RESET, hhdxm_reset_l, and HHDXM_RTS.

Referenced by main().

int DMX_Reconfigure ( FILE dev,
FILE debug 
)
void Backlight_Init ( void   ) 
Examples:
hhopen/hhopen.c.

Definition at line 267 of file hhopen.c.

References HHBACKL_BLUE, HHBACKL_GREEN, and HHBACKL_PORT.

Referenced by main().

void Backlight_Color ( int  r,
int  g,
int  b 
)
Examples:
hhopen/hhopen.c.

Definition at line 273 of file hhopen.c.

int main ( void   ) 

Variable Documentation

const char dxmstr_atsb [] PROGMEM = "starting %S"
Examples:
hhopen/hhopen.c.

Definition at line 80 of file hhopen.c.


© 2000-2010 by contributors - visit http://www.ethernut.de/