Functions | Variables

GPCA Protocol related variables.

Toggle a condition variable received from the environment. More...

Functions

int send_gpca_pkt_to_client (void)
 Function to send gpca packets to client.
int send_channel_ack_to_client (void)
 Fuction to send channel acks to client.

Variables

uint8_t MOTOR_SPEED_LEVEL = 1
 Pump motor speed : 1 (20ms), 2 (40ms), 3 (60ms) 5 (100ms).
uint8_t MOTOR_DIRECTION = CLOCKWISE
 Motor direction.
uint8_t MOTOR_STATE = MOTOR_STOP
 Motor state : Stop or Active.
uint8_t INFUSION_DURATION = 1
 Infusion duration : 1 (30sec), 2 (60sec), 3 (90sec), 4 (120 sec), 5 (150 sec), 6 (180 sec).
uint8_t REMAIN_VOL_PERCENT
 Remaining volume percent.
uint8_t pkt_gpca [PKT_SIZE]
 Buffer to contain gpca packets.
int parsing_state = PARSE_INIT
 Parsing state (upstream).
int ctl_parsing_state = PARSE_CTL_INIT
 Parsing state (downstream from client to GPCA).

Detailed Description

Toggle a condition variable received from the environment.


Function Documentation

int send_channel_ack_to_client ( void   ) 

Fuction to send channel acks to client.

Send acknowledgement for processing channels.

Definition at line 1197 of file main.c.

Here is the call graph for this function:

int send_gpca_pkt_to_client ( void   ) 

Function to send gpca packets to client.

Send GPCA packet to client through TCP/IP.

Returns:
1 on success, -1 on fail.

Definition at line 1162 of file main.c.

Here is the call graph for this function:


Variable Documentation

int ctl_parsing_state = PARSE_CTL_INIT

Parsing state (downstream from client to GPCA).

Definition at line 414 of file main.c.

uint8_t INFUSION_DURATION = 1

Infusion duration : 1 (30sec), 2 (60sec), 3 (90sec), 4 (120 sec), 5 (150 sec), 6 (180 sec).

Definition at line 402 of file main.c.

uint8_t MOTOR_DIRECTION = CLOCKWISE

Motor direction.

Definition at line 398 of file main.c.

uint8_t MOTOR_SPEED_LEVEL = 1

Pump motor speed : 1 (20ms), 2 (40ms), 3 (60ms) 5 (100ms).

Definition at line 396 of file main.c.

uint8_t MOTOR_STATE = MOTOR_STOP

Motor state : Stop or Active.

Definition at line 400 of file main.c.

int parsing_state = PARSE_INIT

Parsing state (upstream).

Definition at line 412 of file main.c.

uint8_t pkt_gpca[PKT_SIZE]

Buffer to contain gpca packets.

Definition at line 406 of file main.c.

Remaining volume percent.

Definition at line 404 of file main.c.

 All Classes Files Functions Variables Typedefs Defines