Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_app_batt.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "devboard_batt.h"
#include "devboard_btn.h"
Include dependency graph for devboard_app_batt.c:

Macros

#define GET_CHARGE_STAT   1
 
#define GET_VOLTS   1
 
#define GET_USB_PRESENT   1
 
#define REPORT_TIME   5000
 
#define USE_SLEEP_MODE   1
 

Functions

void hardware_poll (void)
 
void hardware_reinitialise (void)
 
bool hardware_can_sleep (void)
 
void hardware_sleep (struct ca821x_dev *pDeviceRef)
 
int main (void)
 

Macro Definition Documentation

◆ GET_CHARGE_STAT

#define GET_CHARGE_STAT   1

◆ GET_USB_PRESENT

#define GET_USB_PRESENT   1

◆ GET_VOLTS

#define GET_VOLTS   1

◆ REPORT_TIME

#define REPORT_TIME   5000

◆ USE_SLEEP_MODE

#define USE_SLEEP_MODE   1

Function Documentation

◆ hardware_can_sleep()

bool hardware_can_sleep ( void  )

◆ hardware_poll()

void hardware_poll ( void  )

◆ hardware_reinitialise()

void hardware_reinitialise ( void  )

◆ hardware_sleep()

void hardware_sleep ( struct ca821x_dev pDeviceRef)

◆ main()

int main ( void  )