modules/mbnet/STM32F4xx/mbnet_hal.c File Reference

#include <mios32.h>
#include <FreeRTOS.h>
#include <portmacro.h>
#include "mbnet_hal.h"

Defines

#define MBNET_RX_PORT   GPIOD
#define MBNET_RX_PIN   GPIO_Pin_0
#define MBNET_TX_PORT   GPIOD
#define MBNET_TX_PIN   GPIO_Pin_1
#define MBNET_REMAP_FUNC   { GPIO_PinAFConfig(GPIOD, GPIO_PinSource0, GPIO_AF_CAN1); GPIO_PinAFConfig(GPIOD, GPIO_PinSource1, GPIO_AF_CAN1); }

Functions

s32 MBNET_HAL_Init (u32 mode)
s32 MBNET_HAL_FilterInit (u8 node_id)
s32 MBNET_HAL_Send (mbnet_id_t mbnet_id, mbnet_msg_t msg, u8 dlc)
s32 MBNET_HAL_ReceiveAck (mbnet_packet_t *p)
s32 MBNET_HAL_ReceiveReq (mbnet_packet_t *p)
s32 MBNET_HAL_BusErrorCheck (void)
s32 MBNET_HAL_InstallTxHandler (s32(*_tx_handler_callback)(mbnet_id_t *mbnet_id, mbnet_msg_t *msg, u8 *dlc))
s32 MBNET_HAL_TriggerTxHandler (void)

Define Documentation

#define MBNET_REMAP_FUNC   { GPIO_PinAFConfig(GPIOD, GPIO_PinSource0, GPIO_AF_CAN1); GPIO_PinAFConfig(GPIOD, GPIO_PinSource1, GPIO_AF_CAN1); }
#define MBNET_RX_PIN   GPIO_Pin_0
#define MBNET_RX_PORT   GPIOD
#define MBNET_TX_PIN   GPIO_Pin_1
#define MBNET_TX_PORT   GPIOD

Function Documentation

s32 MBNET_HAL_BusErrorCheck ( void   ) 
s32 MBNET_HAL_FilterInit ( u8  node_id  ) 
s32 MBNET_HAL_Init ( u32  mode  ) 

Here is the call graph for this function:

s32 MBNET_HAL_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_HAL_ReceiveAck ( mbnet_packet_t p  ) 

Here is the call graph for this function:

s32 MBNET_HAL_ReceiveReq ( mbnet_packet_t p  ) 

Here is the call graph for this function:

s32 MBNET_HAL_Send ( mbnet_id_t  mbnet_id,
mbnet_msg_t  msg,
u8  dlc 
)

Here is the call graph for this function:

s32 MBNET_HAL_TriggerTxHandler ( void   ) 

Generated on 22 Jan 2016 for MIOS32 by  doxygen 1.6.1