Runtime Module


Functions

Sub __hbbr_basic_set_last_error (err As Integer)
Function __hbbr_basic_get_last_error ()
Sub __hbbr_delay (delay As Integer)
Sub __hbbr_enable_irq ()
Sub __hbbr_disable_irq ()
Sub __hbbr_enable_all ()
Sub __hbbr_disable_all ()
Function __hbbr_install_irq (irqNum As Integer, ByRef addr As Address) As Integer
Function __hbbr_uninstall_irq (irqNum As Integer) As Integer
Function __hbbr_enable_irq_vector (irqNum As Integer) As Integer
Function __hbbr_disable_irq_vector (irqNum As Integer) As Integer
Function __hbbr_readb (ByVal fnum As Integer, ByRef c As Byte) As Integer
Function __hbbr_readln (ByVal fnum As Integer, ByRef str$ As String) As Integer
Function __hbbr_writeb (ByVal fnum As Integer, ByRef c As Byte) As Integer
Function __hbbr_writeln (ByVal fnum As Integer, ByRef str$ As String) As Integer

Variables

CONST __hbbr_ROM_START
CONST __hbbr_ROM_MAX
CONST __hbbr_RAM_START
CONST __hbbr_RAM_MAX

Function Documentation

Function __hbbr_basic_get_last_error (  ) 

Returns last basic error

Returns:
error number
Function __hbbr_basic_get_last_error() As Integer

Sub __hbbr_basic_set_last_error ( err As  Integer  ) 

Sets last basic error

Sub __hbbr_basic_set_last_error( err As Integer )

Sub __hbbr_delay ( delay As  Integer  ) 

Generates delay with milisecond resolution

Parameters:
[in] delay in miliseconds
Returns:
None
Sub __hbbr_delay(delay As Integer)

Sub __hbbr_disable_all (  ) 

Disables ALL Interrupts

Returns:
None

Sub __hbbr_disable_irq (  ) 

Disables Interrupts

Returns:
None

Function __hbbr_disable_irq_vector ( irqNum As  Integer  ) 

Disable interrupt vector

Parameters:
[in] irqNum interrupt vector number
Specified interupt vector will be disabled

LPC2000 - VIC
AT91SAM7 - AIC

Returns:
0 or 1
Function  __hbbr_disable_irq_vector(irqNum As Integer) As Integer

Sub __hbbr_enable_all (  ) 

Enables ALL Interrupts

Returns:
None

Sub __hbbr_enable_irq (  ) 

Enables Interrupts

Returns:
None

Function __hbbr_enable_irq_vector ( irqNum As  Integer  ) 

Enable interrupt vector

Parameters:
[in] irqNum interrupt vector number
Specified interupt vector will be enabled

LPC2000 - VIC
AT91SAM7 - AIC

Returns:
0 or 1
Function  __hbbr_enable_irq_vector(irqNum As Integer) As Integer

Function __hbbr_install_irq ( irqNum As  Integer,
ByRef addr As  Address 
)

Installs interrupt handler

Parameters:
[in] irqNum interrupt vector number
[in] addr base address of the interrupt handler
Specified interupt handler will be installed depending on the CPU

LPC2000 - VIC
AT91SAM7 - AIC

Returns:
0 or 1
Function  __hbbr_install_irq(irqNum As Integer, ByRef addr As Address) As Integer

Function __hbbr_readb ( ByVal fnum As  Integer,
ByRef c As  Byte 
)

Read single byte from a file.

Parameters:
[in] fnum file number
[in] c reference to Byte
Returns:
number of bytes read, 0 if failed
Function         __hbbr_readb(ByVal fnum As Integer, ByRef c As Byte) As Integer

Function __hbbr_readln ( ByVal fnum As  Integer,
ByRef str$ As  String 
)

Read single line from a file.

Parameters:
[in] fnum file number
[in] str$ reference to String
Returns:
number of bytes read, 0 if failed
Function         __hbbr_readln(ByVal fnum As Integer, ByRef str$ As String) As Integer

Function __hbbr_uninstall_irq ( irqNum As  Integer  ) 

Uninstalls interrupt handler

Parameters:
[in] irqNum interrupt vector number
Returns:
0 or 1
Function  __hbbr_uninstall_irq(irqNum As Integer ) As Integer

Function __hbbr_writeb ( ByVal fnum As  Integer,
ByRef c As  Byte 
)

Write single byte to a file.

Parameters:
[in] fnum file number
[in] c reference to Byte
Returns:
number of bytes written, 0 if failed
Function         __hbbr_writeb(ByVal fnum As Integer, ByRef c As Byte) As Integer

Function __hbbr_writeln ( ByVal fnum As  Integer,
ByRef str$ As  String 
)

Write single line to a file.

Parameters:
[in] fnum file number
[in] str$ reference to String
Returns:
number of bytes written, 0 if failed
Function         __hbbr_writeln(ByVal fnum As Integer, ByRef str$ As String) As Integer


Variable Documentation

CONST __hbbr_RAM_MAX

RAM end (max) address

CONST __hbbr_RAM_START

RAM start address

CONST __hbbr_ROM_MAX

ROM end (max) address

CONST __hbbr_ROM_START

ROM start address

Footer