ArduSat API
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
nanosat_message.h File Reference
#include <inttypes.h>

Go to the source code of this file.

Macros

#define NODE_COMM_MAX_I2C_BUFFER_SIZE   32
 
#define NODE_COMM_MAX_BUFFER_SIZE   24
 
#define NODE_COMM_MESSAGE_PREFIX   0xAB
 

Enumerations

enum  message_type {
  APPEND, READ, SET, EXIT,
  SENSOR_REG, CAM, CLOCK, SUN,
  TELEMETRY, CONTROL_PITCH, CONTROL_YAW, CONTROL_ROLL
}
 

Functions

struct __attribute__ ((packed))
 
uint16_t fletcher_encode (uint8_t buffer[], long count)
 
long fletcher_decode (uint8_t buffer[], long count)
 

Variables

 nanosat_message_t
 

Macro Definition Documentation

#define NODE_COMM_MAX_BUFFER_SIZE   24
#define NODE_COMM_MAX_I2C_BUFFER_SIZE   32
#define NODE_COMM_MESSAGE_PREFIX   0xAB

Enumeration Type Documentation

Enumerator
APPEND 
READ 
SET 
EXIT 
SENSOR_REG 
CAM 
CLOCK 
SUN 
TELEMETRY 
CONTROL_PITCH 
CONTROL_YAW 
CONTROL_ROLL 

Function Documentation

struct __attribute__ ( (packed)  )
read
long fletcher_decode ( uint8_t  buffer[],
long  count 
)
inline
uint16_t fletcher_encode ( uint8_t  buffer[],
long  count 
)
inline

Variable Documentation

nanosat_message_t