HP85 GPIB Disk Emulator  1.0
HP85GPIBDiskEmulator
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gpib_task.h
Go to the documentation of this file.
1 
15 #ifndef _GPIB_TASK_H_
16 #define _GPIB_TASK_H_
17 
18 #include <user_config.h>
19 #include "drives.h"
20 
21 /* gpib_task.c */
22 void gpib_file_init ( void );
23 void gpib_log ( char *str );
24 int SS80_is_MLA ( int address );
25 int SS80_is_MTA ( int address );
26 int SS80_is_MSA ( int address );
27 int AMIGO_is_MLA ( int address );
28 int AMIGO_is_MTA ( int address );
29 int AMIGO_is_MSA ( int address );
30 int PRINTER_is_MLA ( int address );
31 int PRINTER_is_MTA ( int address );
32 int PRINTER_is_MSA ( int address );
33 uint16_t gpib_trace_read_byte ( void );
34 void gpib_trace_task ( char *name , int detail );
35 uint16_t gpib_error_test ( uint16_t val );
36 void gpib_init_devices ( void );
37 uint16_t GPIB_COMMANDS ( uint16_t val , uint8_t unread );
38 void gpib_task ( void );
39 int Send_Identify ( uint8_t ch , uint16_t ID );
40 int GPIB ( uint8_t ch );
41 int GPIB_LISTEN ( uint8_t ch );
42 int GPIB_TALK ( uint8_t ch );
43 int GPIB_SECONDARY_ADDRESS ( uint8_t ch );
44 void listen_cleanup ( void );
45 void talk_cleanup ( void );
46 void DumpData ( unsigned char *ptr , int length );
47 #endif // #ifndef _GPIB_TASK_H_
gpib_task
void gpib_task(void)
Top most main GPIB device emulator task. This is main() for GPIB state machine loop All tasks are dis...
Definition: gpib_task.c:456
gpib_error_test
uint16_t gpib_error_test(uint16_t val)
Check for GPIB errors and timeouts.
Definition: gpib_task.c:277
GPIB_COMMANDS
uint16_t GPIB_COMMANDS(uint16_t val, uint8_t unread)
Process all GPIB Secondary Commands.
Definition: gpib_task.c:371
AMIGO_is_MLA
int AMIGO_is_MLA(int address)
PRINTER_is_MSA
int PRINTER_is_MSA(int address)
Check if PRINTER secondary address.
Definition: gpib_task.c:179
AMIGO_is_MSA
int AMIGO_is_MSA(int address)
GPIB_LISTEN
int GPIB_LISTEN(uint8_t ch)
Process all GPIB Listen commands.
Definition: gpib_task.c:734
SS80_is_MSA
int SS80_is_MSA(int address)
Check if SS80 secondary address.
Definition: gpib_task.c:100
listen_cleanup
void listen_cleanup(void)
Called when the listen address changes.
Definition: gpib_task.c:940
AMIGO_is_MTA
int AMIGO_is_MTA(int address)
gpib_file_init
void gpib_file_init(void)
Read Configuration File.
Definition: gpib_task.c:39
GPIB_SECONDARY_ADDRESS
int GPIB_SECONDARY_ADDRESS(uint8_t ch)
Process all GPIB Secondary Addresses.
Definition: gpib_task.c:888
DumpData
void DumpData(unsigned char *ptr, int length)
HEX and ASCII dump of string in human-readable format.
Definition: gpib_task.c:979
Send_Identify
int Send_Identify(uint8_t ch, uint16_t ID)
Send drive identify- 2 bytes.
Definition: gpib_task.c:586
PRINTER_is_MLA
int PRINTER_is_MLA(int address)
Check if PRINTER listening address.
Definition: gpib_task.c:153
GPIB
int GPIB(uint8_t ch)
Main GPIB command handler Commands 0x00 .. 0x1f.
Definition: gpib_task.c:619
PRINTER_is_MTA
int PRINTER_is_MTA(int address)
Check if PRINTER talking address.
Definition: gpib_task.c:166
gpib_trace_read_byte
uint16_t gpib_trace_read_byte(void)
drives.h
gpib_trace_task
void gpib_trace_task(char *name, int detail)
Trace GPIB activity passively - saving to a log file.
Definition: gpib_task.c:200
GPIB_TALK
int GPIB_TALK(uint8_t ch)
Process all GPIB Talk commands.
Definition: gpib_task.c:809
gpib_init_devices
void gpib_init_devices(void)
Initialize ALL emulated devices SS80, AMIGO and printer.
Definition: gpib_task.c:340
SS80_is_MLA
int SS80_is_MLA(int address)
Check if SS80 listening address.
Definition: gpib_task.c:74
gpib_log
void gpib_log(char *str)
Log GPIB transactions.
Definition: gpib_task.c:63
talk_cleanup
void talk_cleanup(void)
Called when the GPIB talk address changes.
Definition: gpib_task.c:965
SS80_is_MTA
int SS80_is_MTA(int address)
Check if SS80 talking address.
Definition: gpib_task.c:87