Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
test_can.c File Reference
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "led.h"
#include "subsystems/datalink/downlink.h"
#include "mcu_periph/uart.h"
#include "mcu_periph/can.h"
+ Include dependency graph for test_can.c:

Go to the source code of this file.

Functions

static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
void main_on_can_msg (uint32_t id, uint8_t *data, int len)
 
int main (void)
 

Variables

uint8_t tx_data [8]
 
uint8_t rx_data [8]
 
bool new_can_data = false
 

Function Documentation

int main ( void  )

Definition at line 41 of file test_can.c.

References main_event_task(), main_init(), main_periodic_task(), new_can_data, sys_time_check_and_ack_timer(), and tx_data.

+ Here is the call graph for this function:

static void main_event_task ( void  )
inlinestatic

Definition at line 81 of file test_can.c.

References LED_OFF, LED_ON, new_can_data, and rx_data.

Referenced by main().

+ Here is the caller graph for this function:

static void main_init ( void  )
inlinestatic

Definition at line 64 of file test_can.c.

References main_on_can_msg(), mcu_init(), PERIODIC_FREQUENCY, ppz_can_init(), and sys_time_register_timer().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void main_on_can_msg ( uint32_t  id,
uint8_t data,
int  len 
)

Definition at line 117 of file test_can.c.

References new_can_data, and rx_data.

Referenced by main_init().

+ Here is the caller graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Definition at line 70 of file test_can.c.

References DefaultChannel, DefaultDevice, LED_PERIODIC, ppz_can_transmit(), and tx_data.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

bool new_can_data = false

Definition at line 39 of file test_can.c.

Referenced by main(), main_event_task(), and main_on_can_msg().

uint8_t rx_data[8]

Definition at line 38 of file test_can.c.

Referenced by main_event_task(), and main_on_can_msg().

uint8_t tx_data[8]

Definition at line 37 of file test_can.c.

Referenced by main(), and main_periodic_task().