Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

Procedure to control the expansion port

Modules

Functions


Function Documentation

unsigned char Get_Controls (   ) 
 

Read Port port B controls.

Returns:
PB controls /ref portBit
See also:
Set_Controls

unsigned char Get_PortA (   ) 
 

Read Port A. On Y11 are available four bit of parallel expansion port named PA[7:4] with this procedure is possible to read the port value.

See also:
Set_ExpansionPort, Set_PortA

void Set_Controls (  unsigned char  value  ) 
 

Write Port port B controls.

Parameters:
value Write PB controls /ref portBit
See also:
Get_Controls

void Set_ExpansionPort (  unsigned char  portAdir  ) 
 

Set direction of expansion port. On Y11 are available four bit of parallel expansion port named PA[7:4] with this procedure you can set the direction of these bit.
PA[3:0] are internally used for TFT light controls and must set always in output.

Parameters:
portAdir Direction of the port, 0 = output, 1 = input
See also:
Get_PortA, Set_PortA
        // Set SPI channel on expansion port
        Set_SPI(SPI_PP);
        // Set PA[7] and PA[6] in output, while PA[5] and PA[4] are setted input
        Set_ExpansionPort(0x30);

void Set_PortA (  unsigned char  value  ) 
 

Write Port A. On Y11 are available four bit of parallel expansion port named PA[7:4] with this procedure is possible to write the port with a desidered value.

See also:
Set_ExpansionPort, Get_PortA
Returns:
Port A value


Generated on Tue Apr 7 20:07:44 2015 for BF592A Library by doxygen 1.3.1