modules/mbnet/mbnet.h File Reference

Data Structures

union  mbnet_id_t
union  mbnet_msg_t
union  mbnet_state_t

Defines

#define MBNET_SLAVE_NODES_MAX   8
#define MBNET_SLAVE_NODES_BEGIN   0x00
#define MBNET_SLAVE_NODES_END   0x1f
#define MBNET_NODE_SCAN_RETRY   32

Enumerations

enum  mbnet_tos_req_t { MBNET_REQ_SPECIAL, MBNET_REQ_RAM_READ, MBNET_REQ_RAM_WRITE, MBNET_REQ_PING }
enum  mbnet_tos_ack_t { MBNET_ACK_OK, MBNET_ACK_READ, MBNET_ACK_RETRY, MBNET_ACK_ERROR }

Functions

s32 MBNET_Init (u32 mode)
s32 MBNET_VerboseLevelSet (u8 level)
s32 MBNET_VerboseLevelGet ()
s32 MBNET_NodeIDSet (u8 node_id)
s32 MBNET_NodeIDGet (void)
s32 MBNET_ScanFinished (void)
s32 MBNET_SlaveNodeInfoGet (u8 slave_id, mbnet_msg_t **info)
s32 MBNET_Reconnect (void)
s32 MBNET_ErrorStateGet (void)
s32 MBNET_SendReq (u8 slave_id, mbnet_tos_req_t tos_req, u16 control, mbnet_msg_t msg, u8 dlc)
s32 MBNET_SendReqAgain (u8 slave_id)
s32 MBNET_SendAck (u8 master_id, mbnet_tos_ack_t tos_ack, mbnet_msg_t msg, u8 dlc)
s32 MBNET_WaitAck_NonBlocking (u8 slave_id, mbnet_msg_t *ack_msg, u8 *dlc)
s32 MBNET_WaitAck (u8 slave_id, mbnet_msg_t *ack_msg, u8 *dlc)
s32 MBNET_Handler (void(*callback)(u8 master_id, mbnet_tos_req_t tos, u16 control, mbnet_msg_t req_msg, u8 dlc))
s32 MBNET_InstallTxHandler (s32(*tx_handler_callback)(mbnet_id_t *mbnet_id, mbnet_msg_t *msg, u8 *dlc))
s32 MBNET_TriggerTxHandler (void)
s32 MBNET_TerminalHelp (void *_output_function)
s32 MBNET_TerminalParseLine (char *input, void *_output_function)
s32 MBNET_TerminalPrintStatus (void *_output_function)

Define Documentation

#define MBNET_NODE_SCAN_RETRY   32
#define MBNET_SLAVE_NODES_BEGIN   0x00
#define MBNET_SLAVE_NODES_END   0x1f
#define MBNET_SLAVE_NODES_MAX   8

Enumeration Type Documentation

Enumerator:
MBNET_ACK_OK 
MBNET_ACK_READ 
MBNET_ACK_RETRY 
MBNET_ACK_ERROR 
Enumerator:
MBNET_REQ_SPECIAL 
MBNET_REQ_RAM_READ 
MBNET_REQ_RAM_WRITE 
MBNET_REQ_PING 

Function Documentation

s32 MBNET_ErrorStateGet ( void   ) 
s32 MBNET_Handler ( void(*)(u8 master_id, mbnet_tos_req_t tos, u16 control, mbnet_msg_t req_msg, u8 dlc)  callback  ) 

Here is the call graph for this function:

s32 MBNET_Init ( u32  mode  ) 

Here is the call graph for this function:

s32 MBNET_InstallTxHandler ( s32(*)(mbnet_id_t *mbnet_id, mbnet_msg_t *msg, u8 *dlc)  tx_handler_callback  ) 

Here is the call graph for this function:

s32 MBNET_NodeIDGet ( void   ) 
s32 MBNET_NodeIDSet ( u8  node_id  ) 

Here is the call graph for this function:

s32 MBNET_Reconnect ( void   ) 
s32 MBNET_ScanFinished ( void   ) 
s32 MBNET_SendAck ( u8  master_id,
mbnet_tos_ack_t  tos_ack,
mbnet_msg_t  msg,
u8  dlc 
)
s32 MBNET_SendReq ( u8  slave_id,
mbnet_tos_req_t  tos_req,
u16  control,
mbnet_msg_t  msg,
u8  dlc 
)
s32 MBNET_SendReqAgain ( u8  slave_id  ) 
s32 MBNET_SlaveNodeInfoGet ( u8  slave_id,
mbnet_msg_t **  info 
)
s32 MBNET_TerminalHelp ( void *  _output_function  ) 

Here is the call graph for this function:

s32 MBNET_TerminalParseLine ( char *  input,
void *  _output_function 
)

Here is the call graph for this function:

s32 MBNET_TerminalPrintStatus ( void *  _output_function  ) 

Here is the call graph for this function:

s32 MBNET_TriggerTxHandler ( void   ) 

Here is the call graph for this function:

s32 MBNET_VerboseLevelGet (  ) 
s32 MBNET_VerboseLevelSet ( u8  level  ) 
s32 MBNET_WaitAck ( u8  slave_id,
mbnet_msg_t ack_msg,
u8 dlc 
)

Here is the call graph for this function:

s32 MBNET_WaitAck_NonBlocking ( u8  slave_id,
mbnet_msg_t ack_msg,
u8 dlc 
)

Here is the call graph for this function:


Generated on 22 Jan 2016 for MIOS32 by  doxygen 1.6.1