RF controller code error

I have wrote a program.The concept is if A0 pin receive 3.3v means,the RF will transmitt the message "1".If the pin A0 receive 5v,it will send the message "2".RF is to send message from arduino uno to arduino pro mini.But while compiling it shows the message "Error while compiling".

Can anyone help me to find the error in the above program......!!!!!

#include <VirtualWire.h>
char *msg;
float vPow = 5.0;
float r1 = 100000;
float r2 = 10000;
const int ledPin = 13;

void setup()
{
pinMode(ledPin,OUTPUT);
Serial.begin(9600);
vw_set_ptt_inverted(uint8_t *);
vw_setup(2000);
vw_set_tx_pin(3);
}
void loop() {
float v = (analogRead(0) * vPow) / 1024.0;
float v2 = v / (r2 / (r1 + r2));
if msg=(v2 == vPow)
{
const char *msg = 1;
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx(1);
delay(200);
}
else
{
const char *msg = 2;
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx(2);
delay(200);
}
}

voltage_finder.ino (679 Bytes)

I have wrote a program.The concept is if A0 pin receive 3.3v means,the RF will transmitt the message "1".If the pin A0 receive 5v,it will send the message "2".RF is to send message from arduino uno to arduino pro mini.But while compiling it shows the message "Error while compiling".

Can anyone help me to find the error in the above program......!!!!!

#include <VirtualWire.h>
char *msg;
float vPow = 5.0;
float r1 = 100000;
float r2 = 10000;
const int ledPin = 13;

void setup()
{
pinMode(ledPin,OUTPUT);
Serial.begin(9600);
vw_set_ptt_inverted(uint8_t *);
vw_setup(2000);
vw_set_tx_pin(3);
}
void loop() {
float v = (analogRead(0) * vPow) / 1024.0;
float v2 = v / (r2 / (r1 + r2));
if msg=(v2 == vPow)
{
const char *msg = 1;
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx(1);
delay(200);
}
else
{
const char *msg = 2;
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx(2);
delay(200);
}
}

  vw_set_ptt_inverted(uint8_t *);

That is NOT the way to call that function.

if msg=(v2 == vPow)

No clue what you were thinking here.