
AX93304 User
’s Manual
LCM Function specification
5
2.4
Data transaction pattern
API Library
[Host system->AX93304]
_init_com(coom,9600,8,1,0); initialize COM Port
,
return any value is error parameter, “0”
value is correct.
API function
// ccom=1,2,3,4 ;Baud=1200-115200;D_bits=Data bits;S_bits=Stop bits;Prty=Parity bit
int _init_com(int ccom,unsigned long baud,int D_bits,int S_bits,int Prty);
_Tx_data(char txd); Send character to LCM
API function
// Pass character to LCM
int _Tx_data(char txd);
[AX93304->Host system]
_Rx_key(); access the value of button key in AX93304 (LCM), the value is, SW1:0x4E SW2:0x4D
SW3:0x4B SW4:0x47
API function
// Read key
pad from LCM ,Return ‘N’:SW_1 ‘M’:SW_2 ‘K’:SW_3 ‘G’:SW_4
int _Rx_key(void);
Please refer to the lcm.c sample code for more details in function call