AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
AFBR-S50 CAN Interface. More...
#include "can_api.h"
#include "main.h"
#include "debug.h"
#include "r_can.h"
#include "hal_data.h"
#include "driver/bsp.h"
#include "driver/irq.h"
Macros | |
#define | CAN_MAILBOX_ID_TRANSMIT CAN_MAILBOX_ID_0 |
#define | CAN_FRAME_TRANSMIT_DATA_BYTES (8U) |
Enumerations | |
enum | argus_can_frame_id_t { CAN_FRAME_ID_START = 8 , CAN_FRAME_ID_STOP = 9 , CAN_FRAME_ID_1D = 28 } |
Functions | |
void | CAN_Init (void) |
Initializes the CAN API module. | |
void | CAN_Deinit (void) |
Deinitializes the CAN module. | |
static void | CAN_AwaitIdle (void) |
static void | CAN_Write (can_frame_t *const tx_frame) |
void | CAN_Transmit1D (argus_results_t const *res) |
Prints measurement results via CAN bus. | |
void | CAN_HandleCommand (void) |
Handles incoming CAN commands by invoking the corresponding methods. | |
void | can_callback (can_callback_args_t *p_args) |
CAN callback as defined in the "hal_data" module generated by the Renesas FSP Configuration. | |
Variables | |
static volatile bool | is_can_tx_busy = false |
static volatile uint32_t | can_rx_remote_id = 0 |
AFBR-S50 CAN Interface.
This file defines an CAN interface to communicate with the AFBR-S50 Time-Of-Flight sensor API.
Copyright (c) 2022, Broadcom Inc All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.