can.c File Reference

CAN - Control Area Network. More...

Go to the source code of this file.


Functions

int Can_SetActive (int state)
 Sets whether the CAN subsystem is active.
int Can_GetActive ()
 Returns the active state of the CAN subsystem.
int Can_SendMessage (int id, char *message, int count)
 Send a CAN message.
int Can_GetMessage (int *id, char *message, int *count)
 Receive a CAN message.

Detailed Description

CAN - Control Area Network.

Functions for interacting with the CAN Network.

Note this subsystem is not implemented

Definition in file can.c.


Function Documentation

int Can_GetActive ( void   ) 

Returns the active state of the CAN subsystem.

Returns:
State - 1/non-zero (on) or 0 (off).

Definition at line 97 of file can.c.

int Can_GetMessage ( int *  id,
char *  message,
int *  count 
)

Receive a CAN message.

Parameters:
id An integer specifying the message ID.
message A pointer to where the message should be saved.
count ???
Returns:
Status - 0 on success.

Definition at line 181 of file can.c.

int Can_SendMessage ( int  id,
char *  message,
int  count 
)

Send a CAN message.

Parameters:
id An integer specifying the message ID.
message A pointer to the message to be sent.
count ???
Returns:
Status - 0 on success.

Definition at line 109 of file can.c.

int Can_SetActive ( int  state  ) 

Sets whether the CAN subsystem is active.

Parameters:
state An integer specifying the active state - 1 (on) or 0 (off).
Returns:
0 on success.

Definition at line 85 of file can.c.