embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
laser_comms.c File Reference
#include "timing.h"
#include "uart.h"
#include "project_settings.h"
#include "stdint.h"
#include "laser_comms.h"
#include "stm32l4xx_hal.h"
#include "stm32l475e_iot01.h"
#include "stm32l4xx_hal_tim.h"
Include dependency graph for laser_comms.c:

Typedefs

typedef void(* functionptr )(uint8_t)
 

Functions

void ClearFlag (void)
 
void LaserComms_Init (uint8_t playerid, void(*hit)(uint8_t), uint32_t limit)
 
void LaserComms_Fire (void)
 
void LaserComms_HitFilter (uint8_t enemyPlayer)
 

Variables

uint8_t player_id = 0
 
uint8_t min_limit = MIN_LIMIT
 
uint8_t invincible = 0
 
functionptr hit_callback = 0
 
volatile unsigned int i
 

Typedef Documentation

typedef void(* functionptr)(uint8_t)

Function Documentation

void ClearFlag ( void  )

Here is the caller graph for this function:

void LaserComms_Fire ( void  )

Here is the call graph for this function:

void LaserComms_HitFilter ( uint8_t  enemyPlayer)

Here is the call graph for this function:

Here is the caller graph for this function:

void LaserComms_Init ( uint8_t  playerid,
void(*)(uint8_t)  hit,
uint32_t  limit 
)

Here is the call graph for this function:

Variable Documentation

functionptr hit_callback = 0
volatile unsigned int i
uint8_t invincible = 0
uint8_t min_limit = MIN_LIMIT
uint8_t player_id = 0